100% found this document useful (1 vote)
48 views4 pages

Question Bank

Question bank pdf

Uploaded by

kailasjagtap646
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
48 views4 pages

Question Bank

Question bank pdf

Uploaded by

kailasjagtap646
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Question Bank : Git and GitHub Programming

Chapter 1 : Introduction
Short Questions :

1) What is version control sytem ?


2) What are the types of version Control System ?
3) Define the term centralize version control system .
4) What is mean by distributed version control system ?
5) What is a "repository" in version control?
6) What is git?
7) What is git remote?
8) What is github?
9) State the difference between git and github.
10) List the alternatives of gits.
11) What is a GitHub repository?
12) How do you create a new repository on GitHub?
13) What is git stash?
14) What is gitlab and gitbucket.
15) What command do you use to check if Git is installed on your system?
16) How do you configure your name and email in Git?
17) What is the command to set the global username in Git?
18) What is the git clone command used for?
19) How do you clone a remote repository in Git?
20) What happens when you clone a repository in Git?
21) What is working tree ?
22) Define the term staging area.
23) What is the use of git commit command?
24) What is the use of git push command ?
25) What is the use of git pull command ?
26) What is the use of git ?
27) List the example of git hosting services.
28) What is origin in git.

Long Questions :

1) Explain Different types of version control systems.


2) What is centralize version control system ? Explain with suitable diagram.
3) Expalin distributed version control system with suitable diagram.
4) State the difference between centralize and distributed version control system.
5) Short note on gitlab.
6) State the difference between git and github.
7) Explain how to install and configure the git with syntax.
8) Explain the term Git bucket.
9) Write short note on working tree .
10) What is the differene between git push and git pull.
11) Short note on staging area.
12) What is a Version Control System (VCS)? Explain its types and key features.
13) Explain challenges faced when using version control systems,and how can they can
handled.
Chapter 2 : Git – Repository Actions
Short Questions:
1) What is tag ?
2)List the different types of tag ?
3) How do you clone a repository?
4)How do you check the status of your repository?
5) How do you add changes to staging?
6) How do you commit changes with a message?
7) How do you push changes to a remote repository?
8) How do you pull the latest changes from the remote?
9) How do you view the commit history?
10) How do you remove a file from the staging area?
11) How do you discard local changes to a file?
12) How do you view the differences between commits?
13) How do you create a lightweight tag in Git?
14) How do you create an annotated tag in Git?
15) How can you list all tags in a Git repository?
16) How do you delete a tag locally in Git?
17)List the types of git tag ?
18) What is the use of following command ?
git init
git clone
git status
git add <file>
git add ..
git commit
git log
git checkout
git checkout -b <branch-name>
git branch
git branch -d <branch-name>
git reset <file>
git fetch
git –version
19) How do you initialize a new Git repository in a directory?
20) Explain the difference between git pull and git fetch.
21) How do you add a file to the staging area in Git?
Long Questions:
1) Explain tagging in git.
2) State and explain the types of tags in git.
3) Explain the actions performed on remote repository.
4) Explain cloning in git with syntax.
5) Short note on action performed on local repository.
6) What is a pull request, and how does it facilitate collaboration in Git?
7) What are some common issues that might arise during the cloning process,
and how can they be resolved?
8) Explain the concept of a remote repository in Git

Chapter 3 : Branching in Git

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?

Chapter No 4 : Merging and Workflow in Git

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 :

1) Explain Fetching in Git?


2) Explain the difference between Git fetch and git pull.
3) Write short note on rebasing in git.
4) Short note on different types of git workflow.
5) Expalin the centralise git workflow.
6) Explain different ways to use git.
7) Short note on git flow workflow.
8) Explain the difference between `git merge` and `git rebase` and when you would use
each?
9)Explain the imporatance of git workflow in collaborative development.
10) Explain the working of git pull.

You might also like