Question Bank
Question Bank
Chapter 1 : Introduction
Short Questions :
Long Questions :
Short Questions :
1) What is a branch in Git?
2) Which default branch are created in git ?
3) How do you create a new branch in git ?
4) What is the difference between the master and main branches in Git?
5) How do you switch between branches in Git?
6) What does the git branch command do?
7) How do you merge two branches in Git?
8) What is the purpose of the git checkout -b <branch-name> command?
9) How do you list all the branches in a Git repository?
10) What is the difference between git merge and git rebase?
11) How do you merge one branch into another in Git?
12) What is the difference between local and remote branches in Git?
13) What is merging ?
14) How do you delete a branch locally?
15) How do you delete a remote branch?
16) What is conflict in git ?
17) What is head in git ?
18) What is branching ?
Long Questions :
1) Explain the Significance of branching.
2) Write short note on different actions performed on branch?
3) Explain the process of creating, switching, and merging branches
4) How do you resolve merge conflicts in Git when merging branches?
5) Explain git push and git pull in branching.
6) Explain the process of creating and switching to a new branch in Git
7) What are Git tags, and how are they different from branches?
8) Explain the difference between git reset, git revert, and git checkout?
Short Questions :
1) What does git merge do in Git?
2) What is a merge commit in Git?
3)What is the difference between git merge and git rebase?
4) What can git fetch command do ?
5) When should you use git merge instead of git rebase?
6) How can you fetch changes from a specific remote branch in Git?
7) What does the git rebase command do in Git?
8) What is rebasing ?
9) define the term git workflow?
10) List the example of git workflow.
11) What is centralize workflow.
12) List the different ways to use git.
Long Questions :