Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Adding more changes to your last commit

Adding more changes to your last commit
$ (some_branch) git add changelog.md
$ (some_branch) git commit --amend

Amending a Commit Without Changing Its Message
$ (some_branch) git commit --amend --no-edit

Pushing an Amended Commit
$ (some_branch) git push -f origin some_branch
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #Adding #commit
ADD COMMENT
Topic
Name
5+6 =