Skip to content

Instantly share code, notes, and snippets.

@ferhtaydn
Last active June 5, 2017 08:19
Show Gist options
  • Save ferhtaydn/56e6fedbc134f4050d4436e20c6614e3 to your computer and use it in GitHub Desktop.
Save ferhtaydn/56e6fedbc134f4050d4436e20c6614e3 to your computer and use it in GitHub Desktop.
sync a forked repo
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