mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-12 19:04:01 +02:00
Add use-cases for empty commits, thanks to @davej 💛
This commit is contained in:
@@ -427,6 +427,12 @@ Commits can be pushed with no code changes by adding `--allow-empty`:
|
|||||||
$ git commit -m "Big-ass commit" --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
|
### Styled Git Status
|
||||||
Running:
|
Running:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user