# Git
> Git commands.
This directory contains [`make`][make] rules for working with Git.
## Usage
```text
Usage: make [= = ...]
```
### Commands
#### commit
Provides an interactive prompt for creating a Git commit message in accordance with the project's [Git style guide][stdlib-style-guides-git].
```bash
$ make commit
```
#### retry-commit
Retries a previous commit created using `make commit`.
```bash
$ make retry-commit
```
This is particularly useful if a commit failed due to lint errors. An example workflow might proceed as follows:
```bash
# Stage changed files and attempt to commit the changes:
$ git add . && make commit
# Suppose `make commit` fails due to lint errors, so we resolve the lint errors.
# Stage the changes and re-attempt the commit, without having to re-enter commit info:
$ git add . && make retry-commit
```
#### apply-git-notes
Applies Git notes from the `docs/git-notes` directory to their corresponding commits.
```bash
$ make apply-git-notes
```
This is useful for fixing commit messages which contain errors or do not adhere to the project's [Git style guide][stdlib-style-guides-git] and to exclude certain commits from the changelog notes for specific packages.
[make]: https://www.gnu.org/software/make/
[stdlib-style-guides-git]: https://github.com/stdlib-js/stdlib/blob/develop/docs/style-guides/git