Skip to content

Instantly share code, notes, and snippets.

@InBrewJ
Created October 30, 2020 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InBrewJ/6f64b4157eb3eb24524b3df8b5e2af7e to your computer and use it in GitHub Desktop.
Save InBrewJ/6f64b4157eb3eb24524b3df8b5e2af7e to your computer and use it in GitHub Desktop.
Rebasing from master - make your feature branch clean (All credit to @joeyciechanowicz)
git co -b feature-name
# ... do some stuff
git commit -am "message"
# .. go away for a while
git fetch origin/master
git rebase origin master
# ... do some more work
git add .
git commit --amend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment