Last active
July 17, 2017 15:42
-
-
Save j16h/0d7afaa6b71156e1c04df0a1d22f1d87 to your computer and use it in GitHub Desktop.
Git commands to survive
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change pushed commits:
git rebase -i Head~2 // last 2 commitsIf you want to edit comment message:
Change:
pick 07bfb7d my commentTo:
r 07bfb7d 948 my commentSave changes
:wq.Start editing comment by pressing
i. When finished editing pressESCand then:wqRepeat step
4for as many comments as you specified inHead~2, in this example 2 timesWhen ready:
git push --force