Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_commit [2019/02/20 08:39] – [Template] rpjdaygit_commit [2019/02/28 12:36] (current) – [-a] rpjday
Line 76: Line 76:
  2 files changed, 3 insertions(+), 1 deletion(-)  2 files changed, 3 insertions(+), 1 deletion(-)
 $ $
 +</code>
 +
 +===== Popular commit options =====
 +
 +==== "-m" ====
 +
 +<code>
 +-m <msg>, --message=<msg>
 +    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.
 +</code>
 +
 +==== "-a" ====
 +
 +Note how this option accommodates both the modifications and deletions of tracked files:
 +
 +<code>
 +-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.
 </code> </code>
 ===== Defining a commit template ===== ===== Defining a commit template =====
  • git_commit.1550651999.txt.gz
  • Last modified: 2019/02/20 08:39
  • by rpjday