GIT Commit

A 'commit' is a snapshot of our repository. This way if we ever need to look back at the changes we've made (or if someone else does), we will see a nice timeline of all changes. Lets commit all the files added in staging area with a message 'all files added'.

It is good to add message while using git commit as it helps to understand why the commit is done. So keep the commit message short and easy to understand.

Code Structure
git commit -m 'all files added'

Share this

Related Posts