1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-11 02:14:04 +02:00

Add use-cases for empty commits, thanks to @davej 💛

This commit is contained in:
Rafal Chmiel
2014-04-14 20:04:18 +01:00
parent a657ee11c5
commit c492824fa5

View File

@@ -427,6 +427,12 @@ Commits can be pushed with no code changes by adding `--allow-empty`:
$ git commit -m "Big-ass commit" --allow-empty
```
Some use-cases for this (that make sense), include:
- Annotating the start of a new bulk of work or a new feature.
- Documenting when you make changes to the project that aren't code related.
- Communicating with people using your repository.
### Styled Git Status
Running: