Git Flashcards
Start tracking a folder
git init
The name of the git directory inside the current folder
.git
Check your current status
git status
Add a new file to be tracked
git add
Add all modified files to be tracked
git add .
Git will unstage its version of committed file but keep mine
git rm –cached
Command to update how git works
git config
Update username
git config –global user.name “Name”
update email
git config –global user.email “Email”
List all commits git is currently tracking
git log
Shows list of files included in the commit in git log
git log –stat
Show list of files included in git log (not stat flag)
git lob –name-only
Command for where git stores the global config file
cat ~/.gitconfit
Add all files with a certain file ending
git add ‘*.rb’
git preferred way to remove tracked file
git reset HEAD