The command that is used to write a commit message is “git commit -a
”.
here -a on the command line instructs git to commit the new content of all tracked files that have been modified. Also, mention you can use “git add <file>
” before git commit -a if new files need to be committed for the first time
What is a repository in Git?
How can you create a repository in Git?
List out Git repository hosting services
What is the difference between Git and SVN?
What is 'Head' in Git and How to Create Heads in Repo - RRutors
What is the use of ‘git log’?
What is a commit message?
How to create branch in git?
What is a ‘conflict’ in git?
What is mean by ‘git config’ ?
What is the difference between git pull and git fetch?
How to delete branch in git?
How to resolve conflict in git?