Skip to content

Commit

Permalink
feat: reuse previous git commit
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonmachado committed Jun 1, 2024
1 parent b2bc3cd commit fe035ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion posts/git-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,10 @@ git submodule update --init --remote
$ git commit --amend --author="Author Name <email@address.com>" --no-edit
```

The author name and email can be found using `git log`.
The author name and email can be found using `git log`.

## [Reuse the previous commit message and also want to edit it](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt--cltcommitgt)

```bash
$ git commit -c HEAD
```

0 comments on commit fe035ae

Please sign in to comment.