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.
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.
Ques 3. Explain the 'git merge' command.
The 'git merge' command combines changes from different branches into the current branch.
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.
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.
Most helpful rated by users: