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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

add

A

track your files and changes to git

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

commit

A

save your files in git

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

push

A

upload git commits to a remote repo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

pull

A

download changes from the remote repo to your local machine, the opposite of push

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ls -la

A

list everything in the directory including hidden files and folders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

la

A

shorthand for ls -la (only works for a Mac)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

git add .

A

will track all files in both the untracked and modified section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly