git commands Flashcards
(9 cards)
1
Q
clone
A
bring a repository that is hosted somewhere like github into a folder on your local machine
2
Q
add
A
track your files and changes to git
3
Q
commit
A
save your files in git
4
Q
push
A
upload git commits to a remote repo
5
Q
pull
A
download changes from the remote repo to your local machine, the opposite of push
6
Q
ls -la
A
list everything in the directory including hidden files and folders
7
Q
la
A
shorthand for ls -la (only works for a Mac)
8
Q
git status
A
shows all files that were updated or created or deleted but haven’t been saved in a commit yet. might show tracked and untracked files. if untracked –> git add
9
Q
git add .
A
will track all files in both the untracked and modified section