Git Job Interview Questions
Do you want to learn Git or polish your Git skills? Below you will find the list of Git questions and answers that will help you to identify your knowledge gaps and master Git like a pro.
-
How do you personally use Git? Do you use GUI or command line?
Git Junior -
What git command do you use to display all local branches?
Git Junior -
The git stash command is a shortcut of another command. Which one?
Git Junior -
What git command do you use to load workspace changes that were before temporarily saved without being committed to the repository?
Git Junior -
What git command do you use to temporarily save all the workspace changes without committing them?
Git Junior -
Which git command do you use to irreversibly discard all uncommitted changes from your local Git workspace?
Git Junior -
What git command do you use to identify who changed the specific file under version control and what were the changes?
Git Junior -
What git command do you use to get changes from the remote repository to your computer?
Git Junior -
What git command do you use to find out what were the most recent changes in Git repository and who made them?
Git Junior -
What is a hash in Git?
Git Junior -
What is Staging Area (or Index) in Git?
Git Junior -
What is a workspace in Git?
Git Junior -
What does the git clone command do?
Git Junior -
What git command do you use to create a local repository as a copy of remote repository?
Git Junior -
What git command do you use to create an empty local repository?
Git Junior -
What types of git repositories do you usually work with?
Git Junior -
What is a .git folder?
Git Junior -
What is a Git repository?
Git Junior -
What is git?
Git Junior -
What is a Version Control System (VCS)?
Git Junior -
Which git command do you use to save all staged files to your local repository?
Git Junior -
Which git command do you use to send all changes from your local repository to the remote repository?
Git Junior -
Which git command do you use to stage all files with extension .png?
Git Junior -
Which git command do you use to find out what files in your workspace are staged?
Git Junior -
Which git command do you use to find out what files in your workspace are untracked?
Git Junior -
Which git command do you use to see what files in your workspace were changed but were not yet staged??
Git Junior -
How do you retrieve the latest changes from the remote repository and merge them with your current branch?
Git Junior -
What git command do you use to find out which branch you are currently on?
Git Junior -
How do you merge changes from master branch to a branch you are currently on?
Git Junior -
How do you switch to the branch master?
Git Junior -
Explain difference between reset and revert?
Git Source control Mid-level -
When do you use git rebase instead of git merge?
Git Source control Mid-level -
What is a difference between HEAD, working tree and index, in Git?
Git Source control Mid-level -
What is git cherry-pick?
Git Source control Mid-level -
How to revert previous commit in Git?
Git Source control Mid-level -
What's the difference between a pull request and a branch?
Git Source control Mid-level -
What is Git fork? What is difference between fork, branch and clone?
Git Source control Mid-level -
How can you fix a broken commit?
Git Source control Mid-level -
Why is it advisable to create an additional commit rather than amending an existing commit?
Git Source control Mid-level -
What is Git bisect? How can you use it to determine the source of a (regression) bug?
Git Source control Mid-level -
How do you squash last N commits into a single commit?
Git Source control Mid-level -
What does commit object contain?
Git Source control Mid-level -
How do you find a list of files that wer changed in a particular commit?
Git Source control Mid-level -
How do you revert a commit that has already been made public/pushed to a remote repository?
Git Source control Mid-level -
What is a difference between git pull and git fetch?
Git Source control Mid-level -
What is a difference between Git and TFS?
Git Source control Mid-level -
What is bare repository in Git?
Git Source control Mid-level -
When and why would you use git config command?
Git Mid-level -
When and why would you use git stash?
Git Mid-level -
What is git push good for?
Git Mid-level -
What is git pull good for?
Git Mid-level -
What do you need to do in order to use Git for your project?
Git Mid-level -
What are hooks in Git?
Git Mid-level -
What is SubGit good for?
Git Mid-level -
What Git branching strategies do you know?
Git Mid-level -
What is HEAD in Git?
Git Mid-level -
Why would you use git stash drop command?
Git Mid-level -
How can you verify if a branch is merged into master in Git?
Git Mid-level -
How can you find five the most recent commits in Git repository?
Git Mid-level -
What is a hash in Git?
Git Source control Junior -
How do you discard all changes from your local Git workspace?
Git Source control Junior -
What is the most basic Git workflow that you can use every day?
Git Source control Junior -
What is a workspace in Git?
Git Source control Junior -
How do you add changed files from your Git workspace to Staging Area (Index)?
Git Source control Junior -
What is .git folder?
Git Source control Junior -
How do you check what files are changed in your Git workspace?
Git Source control Junior -
What is Staging Area (or Index) in Git?
Git Source control Junior -
What does the Git clone command do?
Git Source control Junior -
How do you add a new file to the Git remote repository?
Git Junior -
What is a git commit command?
Git Source control Junior -
How can you identify who changed the specific file under version control and what were the changes?
Git Source control Junior -
How can you find out what were the most recent changes in Git repository and who made them?
Git Source control Junior -
How do you get changes from the remote repository to your computer?
Git Source control Junior -
What is a difference between local and remote repository?
Git Source control Junior -
How do you create local Git repository?
Git Source control Junior -
How do you send changes from local Git repository to remote repository?
Git Source control Junior -
What is a Git repository?
Git Source control Junior -
What is Git?
Git Source control Junior -
What are the major benefits of using Version Control System (VCS)?
Git Source control Junior -
What is a Version Control System (VCS)?
Git Source control Junior -
Could you describe your day-to-day use of Git?
SDLC Source control Junior
Are you wondering what questions will you get asked on your job interview?
Do you have a Job Ad URL address?
Then we will predict the questions for you...
-
Share the question, get the right answerSubmit the question you have been asked by a recruiter. We will give you the right answer.
Recently added questions
- Do you use your Entity Framework models in API controllers?
- What are POCO classes in Entity Framework?
- Why would you recommend a company to use Entity Framework?
- What Entity Framework versions did you use?
- What is a server evaluation and client evaluation in Entity Framework and why should you know about it?
- Using Entity Framework, how do you check if a row exists in a database?
- How do you handle SQL injection attacks in Entity Framework?
- When are queries executed when you use Entity Framework?
- Which types of loading do you know and which type of loading is good in which scenario in Entity Framework?
- Using Entity Framework, when will you prefer to use Code First and when Database First approach? Why?
- What is a difference between Database First and Code First approach in Entity Framework?
- What is the use of .AsNoTracking() method?
- What is Code First approach in Entity Framework?
- Using Entity Framework, how can you disable an object property from being mapped to a database entity column?
- What happens when you insert multiple rows using Entity Framework?
- How do you insert multiple rows in Entity Framework?
- Can you list a few methods of DbContext object in Entity Framework?
- What are advantages of Entity Framework over ADO.NET?
- What is a difference between dbContext.Orders.First() and dbContext.Orders.Single() in Entity Framework?
- How do you make Entity Framework to return only specific columns from the database instead of all table columns?
Comments
There are no comments yet.
Be the first one who opens the discussion. The world needs people who are able to speak up.