Skip to content

Instantly share code, notes, and snippets.

@jazithedev
Created May 22, 2019 12:18
Show Gist options
  • Save jazithedev/29334602ec50bb10b09a492bc7aab360 to your computer and use it in GitHub Desktop.
Save jazithedev/29334602ec50bb10b09a492bc7aab360 to your computer and use it in GitHub Desktop.
Git notes
git checkout feat1
git rebase master
git checkout feat2
git rebase --onto feat1 origin/feat1 feat2
git checkout feat3
git rebase --onto feat2 origin/feat2 feat3
git push -f feat1 feat2 feat3
git checkout feat1
git fetch
git rebase origin/master
git checkout master
git merge --ff-only feat1
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment