Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Git Interview Questions and Answers
Home
Questions
Git
0
votes
Q: What is the command to reset your index as well as the working directory to the state of your last commit?
answered
Feb 13
in
Git
by
rajeshsharma
git-state
git-commit
0
votes
Q: What does the command Git reset –- soft HEAD^ perform?
answered
Feb 13
in
Git
by
rajeshsharma
git-reset
0
votes
Q: How to delete unpublished Git commits and get rid of them permanently?
answered
Feb 13
in
Git
by
rajeshsharma
git-commit
0
votes
Q: Developers A and B are building the same feature on feature/X branch.
answered
Feb 13
in
Git
by
rajeshsharma
git-push
0
votes
Q: What is the command to delete a branch in your remote repository?
answered
Feb 13
in
Git
by
rajeshsharma
git-delete
0
votes
Q: What does the command git checkout -b branchname do?
answered
Feb 13
in
Git
by
rajeshsharma
git-checkout
0
votes
Q: When you run git fetch from my local repo, will it update your local code and target branch?
answered
Feb 13
in
Git
by
rajeshsharma
git-fetch
target-branch
0
votes
Q: When you run git fetch from your local repo, it will update your local changes in working area?
answered
Feb 13
in
Git
by
rajeshsharma
local-repo
git-fetch
0
votes
Q: Which type of remote URL does not require your user-name and password while for cloning or pushing?
answered
Feb 13
in
Git
by
rajeshsharma
remote-url
clone-password
0
votes
Q: Which command shows the difference between the working directory and the index or staging area?
answered
Feb 13
in
Git
by
rajeshsharma
index-directory
staging-area
0
votes
Q: Which command can you use to update remote refs with local refs?
answered
Feb 13
in
Git
by
rajeshsharma
remote-refs
local
refs
0
votes
Q: How to display only the names of the changed files?
answered
Feb 13
in
Git
by
rajeshsharma
git-change-files
+1
vote
Q: How to fix SSH issues in Gitea?
answered
Jan 13
in
Git
by
DavidAnderson
gitea
+1
vote
Q: What is ‘bare repository’ in Git?
answered
Jan 3
in
Git
by
Robindeniel
bare-repository
#what-is-git
git
github
github-administration
github-repository
github-repo
github-version-control-system
git-version
git-branch
git-commit
+1
vote
Q: Mention some Git Repository Hosting Services.
answered
Jan 3
in
Git
by
Robindeniel
#git-hosting-services
#repository-hosting-service
#git-hosting
+1
vote
Q: What is the difference between ‘git remote’ and ‘git clone’?
answered
Jan 3
in
Git
by
Robindeniel
git-remote
git-clone
git-remote-vs-git-clone
+1
vote
Q: What is a conflict in Git and how to resolve it?
answered
Jan 3
in
Git
by
Robindeniel
#git-conflict
#conflict-git
#git-conflict-resolve
#resolve-git-conflict
+1
vote
Q: Why do we need branching in GIT?
answered
Jan 3
in
Git
by
Robindeniel
git-branching
branch
git
+1
vote
Q: What is the Git Stash drop?
answered
Jan 3
in
Git
by
Robindeniel
#git-stash-drop
#stash-drop-git
#git-drop
0
votes
Q: Name a few Git commands with their function.
answered
Dec 12, 2021
in
Git
by
SakshiSharma
git-commands
0
votes
Q: How can you initialize a repository in Git?
answered
Dec 12, 2021
in
Git
by
SakshiSharma
repository-initialize
0
votes
Q: What is a Git repository?
answered
Dec 12, 2021
in
Git
by
SakshiSharma
git-repository
0
votes
Q: What is the difference between Git and Github?
answered
Dec 12, 2021
in
Git
by
SakshiSharma
git-and-github
git-vs-github
difference-between-git-and-github
0
votes
Q: What do you understand by the term ‘Version Control System’
answered
Dec 12, 2021
in
Git
by
SakshiSharma
version-control-system
0
votes
Q: What is Git bisect? How can you use it to determine the source of a (regression) bug?
answered
Sep 3, 2021
in
Git
by
SakshiSharma
git-bisect
bisect-git
0
votes
Q: What does a Commit object contain?
answered
Apr 1, 2021
in
Git
by
sharadyadav1986
#git-object
#git-commit-object
0
votes
Q: How to resolve a conflict in Git?
answered
Mar 26, 2021
in
Git
by
rajeshsharma
git-conflict
resolve-conflict
0
votes
Q: How do you define a ‘conflict’ in git?
answered
Mar 26, 2021
in
Git
by
rajeshsharma
#git-conflict
conflict
git
0
votes
Q: State a way to create a new branch in Git?
answered
Mar 26, 2021
in
Git
by
rajeshsharma
#git-branch
branch
gt
0
votes
Q: What is the regular way for branching in GIT?
answered
Mar 26, 2021
in
Git
by
rajeshsharma
git-branch
branch
To see more, click for all the
questions in this category
.
...