ZhoubaWiki:GitCheatSheet

From ZhoubaWiki
Revision as of 16:43, 22 May 2021 by Garak (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:-)