Git commit
Jump to navigation
Jump to search
External
Internal
Overview
Apply Extra Changes to the Latest Commit
If the latest commit that has been amended was pushed in a remote repository, you will need to overwrite it in the remote repository - thus rewriting history - with:git push --forceThis is not necessary if the last commit was not pushed yet.
Update a Commit Message that Has Not Been Pushed Yet
git commit --amend
It will start an interactive editor.