- add
- status
- diff
- commit
- reset
- rm
Example:
git add
git status
git diff
git commit
- Untracked
- Unmodified
- modified
- staged
A file will start in the untracked stage until a user decides to use the command: git init. Git init will initialize the file and ensure that git is tracking. After initialization, the file will be moved to the staged stage. At this point the user will prepare to make their first intiial commit. Using the command:
git commit -m "Initial Commit"
will move the file from Staged to Unmodified . The file will remain in the unmodified stage until the user decides to edit the file. At this point the file will then move to the modified stage until the file is ready to be staged