Intro to Git Flashcards

Basic commands and merging

1
Q

What is the command that tells git to track all changes?

A

git add .

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

How do you tell git to track only a single file

A

git add “filename”

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

What is the git command that sends changes from your local repo to a remote?

A

git push

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

True or False: you can have multiple remotes associated to your local repo

A

True. You can add any number of remotes, then fetch/merge and push to each one.

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

With git, you are tracking __________, not _________ .

A

files not folders

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

True or False: if you add files to be tracked by git, you only have to do it once.

A

False. You need to add files to be tracked any time you are ready to commit so that git knows which file you

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