Git Flashcards
git init
initializes a new git repository
git config
configure git
git help [command]
brings up 21 most common git commands [or specific command]
git status
see the status of your repository
git add
does NOT add files, brings them to git’s attention (??)
git commit -m “Message”
commit changes, take snapshot of repository
git branch branch_name
creates a new branch
git checkout [master/branch_name]
look at another repository [the main one/branch named x]
git merge
merge a branch with the master [git merge branch_name]
git pull
get the most recent version of your repo
difference between git and other vcs?
Other VCSs store a set of files and the changes made to those files, git stores snapshots of a project (saving references to unchanged things for efficiency)
how does Git checksum?
SHA-1 hash creates a 40-char string before any change can be made