Answers for "git amend commit message after push"

9

how to change a commit message after push

git commit --amend -m "New commit message"
Then
git push --force
and you're done
Posted by: Guest on April-16-2020
11

git amend commit message after push

$ git commit --amend -m "New and correct message"
Posted by: Guest on October-23-2020
12

git amend commit message after push

git checkout branch_name
git commit --amend -m "Modified message"
# if previous commit is not pushed yet
git push
# or if previous comment was pushed in a previous commit:
git push --force-with-lease branch_name
Posted by: Guest on September-14-2021
0

change commit message after push

git push --force <repository> <branch>
Posted by: Guest on December-15-2020
0

change commit message after push

git push --force-with-lease <repository> <branch>
Posted by: Guest on December-15-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language