Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_commit [2019/02/20 08:39] – [Template] rpjday | git_commit [2019/02/28 12:36] (current) – [-a] rpjday | ||
|---|---|---|---|
| Line 76: | Line 76: | ||
| 2 files changed, 3 insertions(+), | 2 files changed, 3 insertions(+), | ||
| $ | $ | ||
| + | </ | ||
| + | |||
| + | ===== Popular commit options ===== | ||
| + | |||
| + | ==== " | ||
| + | |||
| + | < | ||
| + | -m < | ||
| + | Use the given <msg> as the commit message. If multiple -m | ||
| + | options are given, their values are concatenated as | ||
| + | separate paragraphs. | ||
| + | |||
| + | The -m option is mutually exclusive with -c, -C, and -F. | ||
| + | </ | ||
| + | |||
| + | ==== " | ||
| + | |||
| + | Note how this option accommodates both the modifications and deletions of tracked files: | ||
| + | |||
| + | < | ||
| + | -a, --all | ||
| + | Tell the command to automatically stage files that have | ||
| + | been modified and deleted, but new files you have not told | ||
| + | Git about are not affected. | ||
| </ | </ | ||
| ===== Defining a commit template ===== | ===== Defining a commit template ===== | ||