ZhoubaWiki:GitCheatSheet

From ZhoubaWiki
Jump to navigation Jump to search

Rebase for dummies

git rebase -i HEAD~9
  • HEAD~9 means how many commits before HEAD to process

Then go on based on hints in comments within your $EDITOR

And finally...

git force --push origin branch-name

... and let your colleagues hate you:-)