Creating a commit

A commit is the Git entity that contains a list of changes made to files and that have been registered in the local repository. Making a commit, therefore, consists of archiving changes made to files that have been previously selected with the add command.

The command to create a commit is as follows:

git commit -m "<your commit message>"

The -m parameter corresponds to a message, or description, that we assign to this commit. The message is very important because we will be able to identify the reason for the changes in the files.

It is also possible to commit all files modified since the last commit, without having to execute the add command, by executing the git commit -a  -m "<message>" command.

Once the commit is executed, the changes are archived in the local repository.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.103.10