Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

GIT Interview Questions and Answers

Ques 11. How do you revert a commit that has already been pushed and shared with others?

You can use 'git revert' to create a new commit that undoes the changes introduced by the previous commit.

Is it helpful? Add Comment View Comments
 

Ques 12. What is a Git submodule?

A Git submodule is a reference to a specific commit in another repository within the current repository. It allows for better organization and management of project dependencies.

Is it helpful? Add Comment View Comments
 

Ques 13. Explain the purpose of the 'git cherry-pick' command.

'git cherry-pick' is used to apply specific commits from one branch to another.

Is it helpful? Add Comment View Comments
 

Ques 14. What is a Git stash, and how is it used?

A Git stash is a way to temporarily save changes that are not ready to be committed. It allows you to switch branches without committing or discarding changes.

Is it helpful? Add Comment View Comments
 

Ques 15. How do you rename a Git branch?

You can use the 'git branch -m' command followed by the new branch name to rename a Git branch.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2025 WithoutBook