Modify-stage-commit
Modifying existing file
Let us modify the contents of the first file and see how Git tracks the changes. Make some simple changes to the contents of the first file, save it and then run status command
The file is modified but not yet staged for commit!
Staging the file(s)
We must not try to commit without staging the files, We use the same command to add the files to the staging area as before!
This commit will not be successful
First add the modified files to the staging area and then commit
This commit will be successful
Last updated