User Tools

Site Tools


git_commit

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]
rpjday [Template]
git_commit [2019/02/28 12:36]
rpjday [-a]
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.txt ยท Last modified: 2019/02/28 12:36 by rpjday