Skip to content

Instantly share code, notes, and snippets.

@bmakarand2009
Last active July 28, 2017 21:34
Show Gist options
  • Save bmakarand2009/680330898b3665ae4b4ce19ac5ee9c78 to your computer and use it in GitHub Desktop.
Save bmakarand2009/680330898b3665ae4b4ce19ac5ee9c78 to your computer and use it in GitHub Desktop.
Git Procedures
# example merging 4 commits
git checkout mybranch
git rebase -i mybranch~4 mybranch
# at the interactive screen
# choose fixup for commit: 2 / 3 / 4
# use find and replace of vim editor interactively by :%s/pick/f/gc
git push -u origin +mybranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment