View note:Git



Questions of this subject!.

QuestionLikes!Dislikes!Answers!
1) In order to undo the work of transaction after last commit which one should be used ?

001
2)In which way does bounty programs are used by cryptocoin developers?

001
3)Git is a so-called "distributed" version control system. Whats the difference to a "centralized" one?

001
4)Mention the various Git repository hosting functions.

001
5)What is ‘bare repository’ in Git?

001
6)In Git how do you revert a commit that has already been pushed and made public?

001
7)How to remove a file from git without removing it from your file system?

001
8)What is Git fork? What is the difference between fork, branch, and clone?

001
9)How do you configure a Git repository to run code sanity checking tools right before making commits, and preventing them if the test fails?

001
10)What does git clone do?

004
11)What does the command git config do?

001
12)Can you explain head in terms of git and also tell the number of heads that can be present in a repository?

001
13)What is a conflict?

001
14)What is the functionality of git ls-tree?

001
15)What does git status command do?

001
16)Define “Index”.

001
17)Why is it considered to be easy to work on Git?

001
18)What is the command used to delete a branch?

001
19)What differentiates between the commands git remote and git clone?

001
20)Can you give differences between “pull request” and “branch”?

001
21)Why do we not call git “pull request” as “push request”?

001
22)What do the git diff and git status commands do?

001
23)What has to be run to squash multiple commits (last N) into a single commit?

001
24)What consists of a commit object?

001
25)Explain the levels in git config and how can you configure values using them?

001
26)What is a detached HEAD and what causes this and how to avoid this?

001
27)What does git annotate command do?

001
28)What is the difference between git stash apply vs git stash pop command?

001
29)How to revert a bad commit which is already pushed?

001
30)What is the functionality of “git cherry-pick” command?

001
31)Can you tell the differences between git revert and git reset?

001
32)What is the command you can use to write a commit

001
33)Why GIT better than Subversion? - GIT Note

001
34) What is ‘head’ in git and how many heads can be created in a repository?

001
35)What is the difference between ‘git remote’ and ‘git clone’?

001
36)What is GIT version control?

001
37)What is Subgit? Why to use Subgit? - GIT Note

001
38)What is ‘git status’ is used for? - GIT Note

001
39)What is ‘git add’ is used for? - GIT Note

001
40)How git instaweb is used? - GIT Note

001
41)Why is it advisable to create an additional commit rather than amending an existing commit?

001
42) Name a few Git repository hosting services

001
43)What is Git? GIT note

001
44)What are the advantages/main features of Git?

001
45)What is a .git Directory?

002
46)What happens if the .git directory gets deleted?

001
47)Which command is used for writing a Commit Message in Git?

002
48)What is the bare Git repository? How is it different from a standard/non-bare Git repository?

002
49)Mention some Git Repository Hosting Services.

001
50)Name some Basic Operations in Git.

001
51)Name some Advanced Operations in Git.

001
52)How will you distinguish between Git and SVN?

001
53)What is a conflict in Git and how to resolve it?

001
54)What is the use of git instaweb? Git Note

001
55)What are Hooks in Git?

002
56)When is the git config command used?

001
57)How can you initialize a repository in Git?

001
58)What is the difference between Git and Github?

002
59)Mention the various Git repository hosting functions.

002
60)What does the git push command do

002
61)GitHub, GitLab and Bitbucket are examples of git repository _______ function?

001
62)How is a bare repository different from the standard way of initializing a Git repository?

001
63)What do you understand about the Staging area in Git?

002
64)How do you find a list of files that has been changed in a particular commit?

001
65)What is the use of the git config command?

002
66)What is SubGit and why is it used?

002
67)How is Git merge different from Git rebase?

001
68)What is the command used to fix a broken commit?

001
69)Git interview questions.

001
70)Git interview questions.

001
71)Git interview questions.

001
72)Which command is used to create an empty Git repository?

001
73)Git interview questions.

001
74)Git interview questions.

001
75)What do you understand about the Git merge conflict?

001
76)What is the process to revert a commit that has already been pushed and made public?

001
77)What is the functionality of git clean command?

003
78) If you recover a deleted branch, what work is restored?

001
79) Explain the different points when a merge can enter a conflicted stage.

001
80)How do you recover a deleted branch that was not merged?

001
81)How can you discover if a branch has already been merged or not?

001
82)What are the benefits of using Version Control System?

001
83)How to revert previous commit in git?

001
84)What is Git and why is it used?GITHUB

001
85)what is the Scope of Git?GIT

001
86)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?

001
87)Can you tell something about git reflog?GITHUB

001
88)What command helps us know the list of branches merged to master?

001
89)What is best advisable step in cases of broken commit: Create an additional commit OR amend an existing commit?

001
90)Explain steps involved in removing a file from git index without removing from the local file system?GITHUB

001
91)What are the factors involved in considering which command to choose among: git merge and git rebase?GITHUB

001
92)How do you find a commit which broke something after a merge operation?GITHUB

001
93)what is gitlab?

001
94)What are the different ways you can refer to a commit?

001
95)How does git pull work?

001
96)What is the function of ‘git rm’?

002
97)What is ‘git add’ is used for?

001
98)What is the function of ‘git reset’? GIT

001
99)How do you setup a script to run every time a repository receives new commits through push? GIT

001
100)Git command that helps us initialize git repository for the project (folder) that we intend to track using version control system Git is

001
101)Who created Git?

001
102)Which of the following is example of distributed version control?

001
103)Which of the following option is not valid with git stash command?

001
104)hich of the following will help you create a git repository?

001
105)Which command helps us to see the tracked, untracked files and changes but does not show any commit records?

001
106)Git log command contains following data

001
107)git command which displays the files that have been modified is

001
108)The reference to the remote repository from where a project was initially cloned is called __________

001
109)What represents the last commit in the current checkout branch in git?

001
110)Which is the correct git command to add files to the repository?

001
111)Which of the following is the correct git command to commit changes with proper message?

001
112)Which of the following git command helps to add multiple changes at the same time?

001
113)What does the below git command indicates? git add *.java

001
114)Which git command can help to stash a change with a message?

001
115)_________ is a version of the repository that diverges from the main working project.

001
116)Which of the following command is used to switch between branches in a repository?

001
117)Which of the following command in git helps create copy of target repository?

001
118)How to replace the latest commit with a new commit in git?

001
119)What does git reset --hard HEAD~n do?

001
120)What does git reset --hard do?

001
121)Name some Basic and Advanced Operations in Git.

001
122)How to recover a deleted local branch?

001
123)How to resolve a competing line change merge conflict?

001
124)How to Undo changes done in a commit?

001
125)How to rename a local branch name?

001
126)What to do if you Committed unrelated changes into a single commit?

001
127)What to do if you Forgot which branch has your commit-id?

001
128)How to Delete a commit from history?

001
129)How to Undo the local commits in Github?

001
130)What is git is-tree?

001
131)How do you checkout a Git tag?

001
132)what is git and explain its concepts

001
133)Explain git lifecycle?

001
134)explain clone operation in git?

001
135)hoe to rename in git?

001
136)different platforms of git

001
137)how to fix mistakes in git?

001
138)Branch in git?

001
139)what are the basic needs for git?

001
140)What Is The Difference Between Git And Svn?

001
141)What Language Is Used In Git?

002
142)What Is Git Stash Drop and why it is used?

001
143)What Is The Difference Between The ‘git Diff ’and ‘git Status’?

001
144)Name A Few famous indian Git Repository Hosting Services:

001
145) What are the constituents of the commit object contain?

001
146)State a way to create a new branch in Git.

001
147)What is the regular way for branching in GIT?

001
148)What is exactly cherry-pick in Git why it is needed?

001
149)What is the difference between resetting and reverting?

001
150)Which of the following shortcut to staging all the changes you have?

001
151)What comes first, staging with git add. or committing with git commit?

001
152)What is an alternative to merging in git?

001
153)Which of the following graphical GIT client for LINUX?

001
154)Which of the following Git repository hosting functions?

001
155)What do you understand by git is-tree?

001
156)Which of the following isnt a Git configuration scope?

001
157)What is the best way to avoid email sent through PHP getting into the spam folder?

001
158)What does git add command do?

002
159)What is a Git repository? Name some popular Git hosting services.

001
160)What are the advantages of Git over SVN?

001
161)What is Git Bash? Git questions

001
162)What is the use of a Git clone?

001
163)What is the git pull command?

002
164)What is the difference between git rebase and git merge?

001
165)How to identify if a certain branch has been merged into master?

001
166)What is a distributed VCS?

002
167)What is ‘bare repository’ in Git?

001
168) How will you know in Git if a branch has already been merged into master?

001
169)What are the Advantages of usage in Version Control System?

001
170)Explain the difference between git stash() and git clone()?

001
171)What do you understand about git clone()?

001
172)When to use GIT Config() Command?

001
173)Explain where subgit can be used?

001
174)What do you mean by git stash drop and explain it uses?

001
175)Explain the Connection between Git stash and git stash drop?

001
176)Explain the difference between git stash apply and git stash drop?

001
177)Explain the uses of command - Git stash pop?

001
178)Explain the Git command - git show [commit] ?

001
179)Which Command is used to show limited number of commits? git fetch git log -n git config git status

001
180)Which command defines the author email to be used for all commits by the current user. git clean -f git config --global user.email git merge --no-ff git email--amend

001
181)____________ command is useful for getting a high-level overview of the project history. git log --oneline git reset --hard git log --author="" git rebase

001
182)___________________ removes untracked files from your working directory. git commit git clean -f git clean git reset

001
183)Which command creates an empty Git repository in the specified directory? git reset git log .. git init git init --bare

001
184)Command to download all the objects and references from a specified repository git config --list git help git fetch git log -n

001
185)Git command to compare two specified branches git diff ... git merge git blame -L , git push --tags

001
186)_____________ command renames the current branch to git remote rm git branch -m git branch -D (CAPS) git rebase

001
187)Which Git command displays the patch representing each commit. git branch git remote -v git log -p git log

001
188)Which of the following command line environment is used for interacting with Git ? Git Bash GitHub Git Boot Git Lab

001
189)In Git, if you want to make your local repository reflect changes that have been made in a remote (tracked) repository, you should run the pull command True False

001
190)The Git clone command does which of the following? Makes a local copy of the repository Creates a working directory Commits a new branch Both 1 & 2

001
191)Which one of the following is not part of the data structure of a Git repository? Branch pointer Body element Commit object Head pointer

001
192)Which of these Git client commands creates a copy of the repository and a working directory in the client’s workspace. checkout clone import update

001
193)Git is a .................... Version Control tool. Decentralized Centralized

001
194)GIT belongs to the............. generation of Version Control tools 2nd 3rd 4th 5th

001
195)The main objectives of Git are - speed data integrity support for distributed non-linear workflows All of the above

001
196)What language is used in Git? C HTML PHP C++

001
197)Git command .................... used to give tags to the specified commit. git checkout [branch name] git show [commit] git tag [commitID] git rm [file]

001
198)Who is attributed with inventing Git? Junio Hamano James Gosling Kohsuke Kawaguchi Linus Torvalds

001
199)After you initialize a new Git repository and create a file named git-quiz.html, which of the following commands will not work if issued? git add git-quiz.html git status git add . git commit -m "git quiz web file added"

001
200)Which command should you use to initialize a new Git repository? git bash git install git init git start

001
201)Which file can you configure to ensure that certain file types are never committed to the local Git repository? ignore.git .gitignore gitignore.txt git.ignore

001
202)How do I undo git add before commit?

002
203)How to remove local (untracked) files from the current git working tree?

001
204)How can I reset or revert a file to a specific revision?

001
205)How do I push a new local branch to a remote Git repository and track it too?

001
206)How do I update or sync a forked repository on GitHub?

001
207)Delete commits from a branch in Git

001
208)Make an existing Git branch track a remote branch?

001
209)Move existing, uncommitted work to a new branch in Git

001
210)How do I list all of the files in a git commit ?

001
211)How to find and restore a deleted file in a Git repository?

001
212)How do you push a tag to a remote repository using git?

001
213)How to modify a specified commit?

001
214)How do you clone a git repository into a specific folder?

001
215)How can I see the differences between two git branches ? -git note

001
216)What is a repository in GIT ?

001
217)What is the difference between GIT and SVN?

001
218) What are the advantages of using GIT?

001
219)What is the function of ‘GIT PUSH’ in GIT?

002
220) What is GIT stash?

002
221)What is GIT stash drop?

001
222)How will you know in GIT if a branch has been already merged into master?

001
223)What does commit object contain?

001
224)What is ‘head’ in git and how many heads can be created in a repository?

001
225) What is the purpose of branching in GIT?

001
226) To delete a branch what is the command that is used?

001
227) To delete a branch what is the command that is used?

001
228)What is the syntax for “Rebasing” in Git?

001
229)What is GIT version control?

001
230)Mention some of the best graphical GIT client for LINUX?

001
231)What is Subgit? Why to use Subgit?

001
232)What is the function of ‘git checkout’ in git?

001
233)What is the function of ‘git stash apply’?

001
234)What is the function of ‘git reset’?

001
235)What is git Is-tree?

001
236)What does ‘hooks’ consist of in git?

001
237)How can you fix a broken commit?

001
238)Why is it advisable to create an additional commit rather than amending an existing commit?

001
239)What is ‘bare repository’ in GIT?

001
240)Name a few Git repository hosting services

001
241)Define “Index” in git

001
242)Can you give differences between “pull request” and “branch”?

001
243)Find when a file was deleted in git? -git note

001
244)How do I diff the same file between two different commits on the same branch?

001
245)How to revert multiple git commits?

001
246)How to revert a merge commit thats already pushed to remote branch?

001
247)Break a previous commit into multiple commits in git?

002
248)Download a single folder or directory from a GitHub repo?

001
249)How can I make high-quality printable images of Git history? Git branch graphs

001
250)How can I get a list of Git branches, ordered by most recent commit?

002
251)How to cherry-pick a range of commits and merge them into another branch?

001
252) How do you find a list of files that has been changed in a particular commit in git ?

001
253)What has to be run to squash the last N commits into a single commit?

001
254)What is the difference between fork, branch, and clone?

001
255)Name a few Git commands with their function.

001
256) What are the three main trees maintained by GIT?

001
257)Do we have to store Scripts for GIT hooks within the same repository?

001