ZhoubaWiki:GitCheatSheet

From ZhoubaWiki
Jump to: navigation, search

Rebase for dummies

<syntaxhighlight> git rebase -i HEAD~9 </syntaxhighlight>

  • HEAD~9 means how many commits before HEAD to process

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

And finally... <syntaxhighlight> git force --push origin branch-name </syntaxhighlight>

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