Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by docs.github.com #
 
PREVIOUS NEXT
Tagged: #git #amend #commit #message #push
ADD COMMENT
Topic
Name
8+5 =