Skip to content

Commit

Permalink
💥 Add git push empty commit
Browse files Browse the repository at this point in the history
  • Loading branch information
YenHub committed Dec 1, 2023
1 parent 2b1483e commit 7f79dec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/engineering/git/empty-commit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Pushing an empty commit

Sometimes it's helpful to be able to push empty commits.

A good example is when you want to trigger a pipeline without making any changes.

```bash
git commit --allow-empty -m "Trigger Build"
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ nav:
- Avoiding merge-commits: engineering/git/no-merge-commit.md
- Rebase -vs- Merge: engineering/git/rebase-merge.md
- Git Friend Finder!: engineering/git/friend-finder.md
- Pushing empty commits: engineering/git/empty-commit.md
- Misc:
- XMLHttp Response Codes: engineering/misc/xmlhttp.md
- 'Atom Editor: Backup Process': engineering/misc/atom.md
Expand Down

0 comments on commit 7f79dec

Please sign in to comment.