Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git edit last commit message

# with file changes
git commit --amend -m "Commit Message"

# without file changes, update only commit message
git commit --amend -m "Updated Commit Message" --no-edit
 
PREVIOUS NEXT
Tagged: #git #edit #commit #message
ADD COMMENT
Topic
Name
5+4 =