Difference between revisions of "ZhoubaWiki:GitCheatSheet"

From ZhoubaWiki
Jump to navigation Jump to search
(Created page with "== Rebase for dummies == <syntaxhighlight> git rebase -i HEAD~9 </syntaxhighlight> * <code>HEAD~9</code> means how many commits before HEAD to process Then go on based on h...")
 
(No difference)

Latest revision as of 16:43, 22 May 2021

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:-)