1.
In Git, if you have committed your code with an incorrect commit message, then which of the following commands is used to correct the commit message?
2.

What is the function of the following Git code:

 
$ git commit -m "Some message"
$ git reset --soft HEAD~
<< edit files as necessary >>
$ git add ...
$ git commit -c ORIG_HEAD
3.
In Git, you are defining a .gitmodules file for your project. You are required to define the path that is related to the top-level directory of a tree. This tree allows you to check the submodule. Which of the following commands will you use to achieve this task?
4.

You are configuring the submodule.<name>.update key in your .gitmodules file for your Git project. Which of the following parameters are you allowed to use in this case:

 

  1. Checkout

  2. Rebase

  3. Merge

  4. Clone


  5.  
5.

In the following Git code, which of the following aliases can be used as an alternative:

 
git log -g --abbrev-commit --pretty=oneline
6.
Your primary task is to use the merge base command in your Git project. If you are required to determine the best ancestors of all supplied commits for preparing an n-way merge, then which of the following mode of operation must be used to fulfill your requirement?
7.
You are required to use the git blame command. Which of the following Git commands is used to restrict the application of the blame annotation to a limited set of lines?
8.
Some Git commands take the combination of flags and parameters as the input. These flags and parameters are also used in the git rev-list command. Which of the following commands is used to distinguish between these flags and parameters?
9.
You are required to use the git cherry-pick command on several commits. The working tree is clean. You cannot determine a way to apply certain changes. Which of the following represents the first step that the git cherry-pick command takes to resolve this problem?
10.
You are applying commit operations from one branch to another branch by using the git cherry-pick command. Assume that commit operations have been applied without any conflicts. Which of the following GIt options you must not use with the command?