Git stage and commit
git add <file|pattern>
will add your files to the index
or staging area. They will be tracked as staged.
Committing
Once the files you want to save have been added to the index, you can commit them to the git directory with
git commit -m "message"
To modify the message of the latest commit, do git commit --amend -m "new message"
References
- boot.dev
Next -> git-commit-history-and-logs
#working_tree #computer_science #repository #boot_dev #programming #workflow #states #commit #stage #repos #github #git_directory #git #primeagen #index