📘
Git-Help
Git Cheatsheet
  • A Simple Git Help
  • Basics
  • Git Branching
  • Pull Request
  • Submodules
  • Commands / Actions
    • 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
    • delete branch
  • Credits & Other
    • Other good links
    • Credits
Powered by GitBook
On this page

Was this helpful?

  1. Commands / Actions

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.

git commit --amend

Note:- this amend works only for the local git commit which is not yet pushed to remote repo.

git rebase --continue

Previousgit initNextReset a file or full

Last updated 3 years ago

Was this helpful?