Last active
June 5, 2017 08:19
-
-
Save ferhtaydn/56e6fedbc134f4050d4436e20c6614e3 to your computer and use it in GitHub Desktop.
sync a forked repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote -v | |
git remote add upstream https://github.com/scala/scala.github.com.git | |
git fetch upstream | |
git checkout master | |
git merge (or rebase) upstream/master | |
git push origin master | |
squash: | |
- To squash four commits into one, do the following: | |
git rebase -i HEAD~4 | |
- replace the words "pick" with "squash" next to the commits you want to squash into the commit before it | |
git push origin branch-name --force | |
- https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment