CLI and Git Workflow

Question 1
Marks : +2 | -2
Pass Ratio : 100%
Which of the following is not a CLI command?
delete
rm
clear
none of the mentioned
Explanation:
rm can be used to remove files and directories.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
Which of the following command is used to give a message description?
git command -m
git command -d
git command -message
none of the mentioned
Explanation:
This only updates your local repository.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong statement.
Command is the CLI command which does a specific task
There is one and only flag for every command in CLI
Flags are the options given to command for activating particular behaviour
All of the mentioned
Explanation:
Depending on the command, there can be zero or more flags and arguments.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong statement.
You need GitHub to use Git
GitHub allows you to share repositories with others
GitHub allows you to access others repositories
All of the mentioned
Explanation:
GitHub can store a remote copy of your repository.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Point out the correct statement.
You don’t need GitHub to use Git
CLI can help you to organize files and folders
Navigation of directory is possible using CLI
None of the mentioned
Explanation:
CLI stands for Command Line Interface.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Which of the following command is used to squash the commits?
rebase
squash
boot
all of the mentioned
Explanation:
In Git, there are two main ways to integrate changes from one branch into another: the merge and the rebase.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Which of the following is the correct way of creating GitHub repository in to well labelled commits?
Fork another user’s repository
Pop another user’s repository
Zip another user’s repository
None of the mentioned
Explanation:
A fork is a copy of a repository.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
Point out the correct statement.
CLI can help you to organize messages
CLI can help you to organize files and folders
Navigation of directory is possible using CLI
None of the mentioned
Explanation:
CLI stands for Command Line Interface.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Which of the following command line environment is used for interacting with Git?
GitHub
Git Bash
Git Boot
All of the mentioned
Explanation:
Git for Windows provides a BASH emulation used to run Git from the command line.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Which of the following statement would create branch named as ‘sanfoundry’?
git checkout -b sanfoundry
git checkout -c sanfoundry
git check -b sanfoundry
none of the mentioned
Explanation:
A branch in Git is simply a lightweight movable pointer to one of these commits.