- Git commit it is snapshot/backup stage of code in that particular branch
- if you done changes in your source code, then we want to save the changes at that particular stage
- We can save them by committing with this command
Git commit :
Single line commit | Git commit -m “commit name” |
Commit with large information(editor opens) | git commit or git commit -v |
Commiting Modified, Tracked files at a time :
- git commit -a -m “commit message”