Last active
July 17, 2017 15:42
-
-
Save imjul1an/0d7afaa6b71156e1c04df0a1d22f1d87 to your computer and use it in GitHub Desktop.
Git commands to survive
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 commits
If you want to edit comment message:
Change:
pick 07bfb7d my comment
To:
r 07bfb7d 948 my commen
tSave changes
:wq
.Start editing comment by pressing
i
. When finished editing pressESC
and then:wq
Repeat step
4
for as many comments as you specified inHead~2
, in this example 2 timesWhen ready:
git push --force