π
π
π
π
Git-Help
Git Cheatsheet
Searchβ¦
A Simple Git Help
Basics
Git Branching
Pull Request
Submodules
Commands
Commit changes to other branch
git log
git status
git init
Amend a commit
Reset a file or full
Undo git add
Get remote repo url
Add or Set Remote URL
Credits & Other
Other good links
Credits
Powered By
GitBook
Amend a commit
To modify an existing commit
β
Git Amend
Lets say you commited your code to local repository and later you found you want to add or modify that commit, you can use git amend.
1
git commit --amend
Copied!
Note:- this amend works only for the local git commit which is not yet pushed to remote repo.
β
git rebase --continue
Commands - Previous
git init
Next - Commands
Reset a file or full
Last modified
8mo ago
Copy link
Contents
Git Amend