-
What is a version control system (VCS)?
-
What is a git repository?
-
What does git clone do?
-
What does the command git config do?
-
Can you explain head in terms of git and also tell the number of heads that can be
present in a repository?
-
What is a conflict?
-
What is the functionality of git ls-tree?
-
What does git status command do?
-
Define “Index”.
-
What does git add command do?
-
Why is it considered to be easy to work on Git?
-
How will you create a git repository?
-
Tell me something about git stash?
-
What is the command used to delete a branch?
-
What differentiates between the commands git remote and git clone?
-
What does git stash apply command do?
-
Differentiate between git pull and git fetch.
-
Can you give differences between “pull request” and “branch”?
-
Why do we not call git “pull request” as “push request”?
-
Can you tell the difference between Git and GitHub?
-
What do the git diff and git status commands do?
-
What has to be run to squash multiple commits (last N) into a single commit?
-
How would you recover a branch that has already pushed changes in the central
repository but has been accidentally deleted from every team member’s local
machines?
-
Can you tell something about git reflog?
-
What consists of a commit object?
-
Explain the levels in git config and how can you configure values using them?
-
What is a detached HEAD and what causes this and how to avoid this?
-
What does git annotate command do?
-
What is the difference between git stash apply vs git stash pop command?
-
What command helps us know the list of branches merged to master?
-
How will you resolve conflict in Git?
-
What is best advisable step in cases of broken commit: Create an additional
commit OR amend an existing commit?
-
How to revert a bad commit which is already pushed?
-
What is the functionality of “git cherry-pick” command?
-
Explain steps involved in removing a file from git index without removing from
the local file system?
- What are the factors involved in considering which command to choose among:
git merge and git rebase?