1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:02:09 +02:00

git-commit: add --file example (#5676)

This commit is contained in:
bagginslin 2021-04-04 12:59:11 +00:00 committed by GitHub
parent 3597c70e6c
commit 84df3c982b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,10 @@
`git commit -m "{{message}}"`
- Commit staged files with a message read from a file:
`git commit --file {{path/to/commit_message_file}}`
- Auto stage all modified files and commit with a message:
`git commit -a -m "{{message}}"`
@ -17,4 +21,4 @@
- Commit only specific (already staged) files:
`git commit {{path/to/my/file1}} {{path/to/my/file2}}`
`git commit {{path/to/file1}} {{path/to/file2}}`