Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

GIT Interview Questions and Answers

Ques 1. What is a commit in Git?

A commit is a snapshot of changes made to a Git repository. It creates a new revision in the version history.

Is it helpful? Add Comment View Comments
 

Ques 2. How do you create a new branch in Git?

You can create a new branch using the 'git branch' command followed by the branch name.

Is it helpful? Add Comment View Comments
 

Ques 3. Explain the 'git merge' command.

The 'git merge' command combines changes from different branches into the current branch.

Is it helpful? Add Comment View Comments
 

Ques 4. What is a Git conflict, and how can it be resolved?

A Git conflict occurs when changes in one branch cannot be merged automatically. It can be resolved by manually editing the conflicting files.

Is it helpful? Add Comment View Comments
 

Ques 5. What is a Git repository?

A Git repository is a storage location where a project's files and their revision history are stored.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2024 WithoutBook