Intro to Git Flashcards
Basic commands and merging
1
Q
What is the command that tells git to track all changes?
A
git add .
2
Q
How do you tell git to track only a single file
A
git add “filename”
3
Q
What is the git command that sends changes from your local repo to a remote?
A
git push
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.
5
Q
With git, you are tracking __________, not _________ .
A
files not folders
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