Git by Cole

Git Stage and Commit

To commit a set of changes you need to stage your changes before. Staging is an intermediate storage area where you add (stage) files and changes ready for commit. When you commit your changes, all your staged files are part of your commit.

Git Stage and Commit

After a number of changes made over files in the repository branch, you need to commit them to make it permanent. Before this commit, every change is temporary and could be lost. A commit contains of a number of files changed, and some attributes related to the commit, including a commit message. This message must be a basic and quick summary of the changes made (Example: “Added validation for user password”).

Comments

Leave a Comment

All fields are required. Your email address will not be published.