# 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
