Skip to content

Instantly share code, notes, and snippets.

@gregoriokusowski
Created January 25, 2013 13:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregoriokusowski/4634474 to your computer and use it in GitHub Desktop.
Save gregoriokusowski/4634474 to your computer and use it in GitHub Desktop.
Since we started to use a branching model to control every stuff we send to production, we use the interactive rebase into a temp branch in order choose commits, keep their reference and check the code before check it to the stable branch.
git checkout master
git checkout -b temp
git rebase -i stable
# Time to select/remove/squash commits
git checkout stable
git pull . temp
git branch -d temp
# And now you can push to production :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment