Q.1
Which of the following adds all new files to local repository?
  • a) git add .
  • b) git add -u
  • c) git add -A
  • d) none of the mentioned
Q.2
Point out the correct statement.
  • a) You don’t need GitHub to use Git
  • b) CLI can help you to organize files and folders
  • c) Navigation of directory is possible using CLI
  • d) None of the mentioned
Q.3
Which of the following command updates tracking for files that are modified?
  • a) git add .
  • b) git add -u
  • c) git add -A
  • d) none of the mentioned
Q.4
Which of the following command is used to give a message description?
  • a) git command -m
  • b) git command -d
  • c) git command -message
  • d) none of the mentioned
Q.5
Point out the wrong statement.
  • a) You need GitHub to use Git
  • b) GitHub allows you to share repositories with others
  • c) GitHub allows you to access others repositories
  • d) All of the mentioned
Q.6
Which of the following command allows you to update the repository?
  • a) push
  • b) pop
  • c) update
  • d) none of the mentioned
Q.7
Which of the following is the correct way of creating GitHub repository in to well labelled commits?
  • a) Fork another user’s repository
  • b) Pop another user’s repository
  • c) Zip another user’s repository
  • d) None of the mentioned
Q.8
Which of the following command is used to squash the commits?
  • a) rebase
  • b) squash
  • c) boot
  • d) all of the mentioned
Q.9
Which of the following statement would create branch named as ‘sanfoundry’?
  • a) git checkout -b sanfoundry
  • b) git checkout -c sanfoundry
  • c) git check -b sanfoundry
  • d) none of the mentioned
Q.10
branch command is used to determine which branch you are currently in.
  • a) True
  • b) False
0 h : 0 m : 1 s