Link to the quiz: https://goo.gl/forms/jkZbBhaKUn6VRIED2
What's the git command that downloads your repository from GitHub to your computer?
a. git push
b. git fork
c. git clone
d. git commit
How do you stage files for a commit?
a. git stage
b. git commit
c. git add
d. git reset
How do you create a new branch in git?
a. git checkout -d <<branch name>>
b. git checkout -b <<branch name>>
c. git checkout -m <<branch name>>
d. git checkout ---new <<branch name>>
What is the best way to ensure that folders and files
like (node_modules etc.) are never pushed to the git server?
a. Never stage these folders and files with "git add".
b. Always remove these folders and files before you do a "git commit"
c. Set a pre-receive hook to reject any such commit which tries to check in any of these
files or folders
d. Maintain a .gitignore file and mention all these files and folders in it.
How would you list all available branches (including remote branches)?
a. git branch
b. git branch -a
c. git branch -m
d. git branch --list
-
(c) git clone
-
(c) git add
-
(b) git checkout -b <<branch name>>
-
(d) Maintain a .gitignore file and mention all these files and folders in it.
-
(b) git branch -a