-
Notifications
You must be signed in to change notification settings - Fork 17
Working with Git
Valk edited this page Jun 17, 2023
·
2 revisions
I highly recommend installing GitHub Desktop, it greatly simplifies this process for the most part.
- Fork this repo
- Install Git scm
- Clone your fork with
git clone https://github.com/<USERNAME>/Sankari
(replace<USERNAME>
with your GitHub username) - Push and pull changes from your fork with
git pull
git push
- Create a pull request through the GitHub website to merge your work with this repo
git clone --recursive <url>
git submodule update --init --recursive
# Delete all commits except for <last_working_commit_id>
git reset --hard <last_working_commit_id>
# Push the changes (be sure that this is what you really want to do or you may lose a lot of progress)
git push --force
# Add upstream as a remote (check remotes with git remote -v)
git remote add upstream https://github.com/Valks-Games/sankari.git
# Fetch data from upstream
git fetch upstream
# Merge upstream with your fork (if you don't care about your history, then replace merge with rebase)
git merge upstream/main