0 votes
in Git by

Q. What is the command to write a commit message in Git?

1 Answer

0 votes
by

Use:

git commit -a

-a on the command line instructs git to commit the new content of all tracked files that have been modified. You can use

git add <file>

or

git add -A

before git commit -a if new files need to be committed for the first time.

Related questions

+1 vote
asked Jul 25, 2019 in Git by SakshiSharma
+2 votes
asked Jul 25, 2019 in Git by SakshiSharma
...