Week 2Summary - John's Notes
Commands
git add - Add files into the index or staging area
git commit - Commit files into the repository, using text editor for commit message
git commit -m '<Message>' - Commit files into the repository, using the command line to supply commit message
git commit -a - Commit all tracked files into the repository that have changed, using text editor for commit message
git reset <path> - Remove file from index or staging area
git status - Show the status of tracked, changed, untracked files
Terminology
- Branch - A way of working on the same set of code in parallel without modifications overlapping
- Commit - A group of objects and a tree in a Git repository
|
|