> For the complete documentation index, see [llms.txt](https://www.git-help.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.git-help.com/commands/amend-a-commit.md).

# Amend a 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.&#x20;

```
git commit --amend
```

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

git rebase --continue
