Browse Source

git-commit: add example

CleanMachine1 3 years ago
parent
commit
6814b4352b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/common/git-commit.md

+ 4 - 0
pages/common/git-commit.md

@@ -22,3 +22,7 @@
 - Commit only specific (already staged) files:
 
 `git commit {{path/to/file1}} {{path/to/file2}}`
+
+- Commit staged files to the repository with a message while allowing the commit be empty:
+
+`git commit -m "{{message}}" --allow-empty`