FullStackFSCCafé
 
 
Sign in with GoogleSign in with Google. Opens in new tab
Kill Your Tech Interview
3877 Full-Stack, Algorithms & System Design Interview Questions
Answered To Get Your Next Six-Figure Job Offer
      
🤖 Having Machine Learning & DS Interview? Check  MLStack.Cafe - 1704 Data Science & ML Interview Questions & Answers!Having ML & DS Interview? Check 🤖 MLStack.Cafe - 1704 ML & DS Interview Questions and Answers

Top 36 Git Interview Questions

Entry Junior Mid Senior Expert
Sign in with GoogleSign in with Google. Opens in new tab
Topic Progress:

Theoretical Questions

Q1:   

What is difference between Git vs SVN?

  
Add to PDF   Entry 
Q2:   

What is the command to write a commit message in Git?

  
Add to PDF   Entry 
Q3:   

What is Git?

  
Add to PDF   Entry 
Q4:   

What is the difference between git pull and git fetch?

  
Add to PDF   Junior 
Q5:   

What is Git fork? What is difference between fork, branch and clone?

  
Add to PDF   Junior 
Q6:   

What's the difference between a pull request and a branch?

  
Add to PDF   Junior 
Q7:   

How does the Centralized Workflow work?

  
Add to PDF   Junior 
Q8:   

Could you explain the Gitflow workflow?

  
 Add to PDF   Mid 
Q9:   

What is a "bare git" repository?

  
 Add to PDF   Mid 
Q10:   

What is git cherry-pick?

  
 Add to PDF   Mid 
Q11:   

When should I use git stash?

  
 Add to PDF   Mid 
Q12:   

Tell me the difference between HEAD, working tree and index, in Git?

  
 Add to PDF   Mid 
Q13:   

Explain the advantages of Forking Workflow

  
 Add to PDF   Mid 
Q14:   

How to revert previous commit in git?

  
 Add to PDF   Mid 
Q15:   

When would you use git clone --bare over git clone --mirror?

  
 Add to PDF   Senior 
Q16:   

When would you use git clone over git clone --bare?

  
 Add to PDF   Senior 
Q17:   

When would you use git clone over git clone --mirror?

  
 Add to PDF   Senior 
Q18:   

What is the difference between git clone, git clone --bare and git clone --mirror?

  
 Add to PDF   Senior 
Q19:   

Can you explain what git reset does in plain English?

  
 Add to PDF   Senior 
Q20:   

How do you make an existing repository bare?

  
 Add to PDF   Senior 
Q21:   

What is the HEAD in Git?

  
 Add to PDF   Senior 
Q22:   

What is difference between git stash pop and git stash apply?

  
 Add to PDF   Senior 
Q23:   

What are "git hooks"?

  
 Add to PDF   Expert 
Q24:   

Do you know how to easily undo a git rebase?

  
 Add to PDF   Expert 
Q25:   

What are the type of git hooks?

  
 Add to PDF   Expert 
Q26:   

When do you use git rebase instead of git merge?

  
 Add to PDF   Expert 
Q27:   

How can you use git bisect to determine the source of a (regression) bug?

  
 Add to PDF   Expert 
Q28:   

What is git bisect? How can you use it to determine the source of a (regression) bug?

  
 Add to PDF   Expert 

Code Challenges

Q1:   

How to undo the most recent commits in Git?

  
 Add to PDF   Junior 
Q2:   

You need to update your local repos. What git commands will you use?

  
 Add to PDF   Junior 
Q3:   

You need to rollback to a previous commit and don't care about recent changes. What commands should you use?

  
  Add to PDF   Mid 
Q4:   

How to remove a file from git without removing it from your file system?

  
  Add to PDF   Senior 
Q5:   

Write down a sequence of git commands for a "Rebase Workflow"

  
  Add to PDF   Senior 
Q6:   

What git command do you need to use to know who changed certain lines in a specific file?

  
  Add to PDF   Expert 
Q7:   

Write down a git command to check difference between two commits

  
  Add to PDF   Expert 
Q8:   

How to amend older Git commit?

  
  Add to PDF   Expert 
 

Rust has been Stack Overflow’s most loved language for four years in a row and emerged as a compelling language choice for both backend and system developers, offering a unique combination of memory safety, performance, concurrency without Data races...

Clean Architecture provides a clear and modular structure for building software systems, separating business rules from implementation details. It promotes maintainability by allowing for easier updates and changes to specific components without affe...

Azure Service Bus is a crucial component for Azure cloud developers as it provides reliable and scalable messaging capabilities. It enables decoupled communication between different components of a distributed system, promoting flexibility and resili...

Cosmos DB has gained popularity among developers and organizations across various industries, including finance, e-commerce, gaming, IoT, and more. Follow along and learn the 24 most common and advanced Azure Cosmos DB interview questions and answers...
More than any other NoSQL database, and dramatically more than any relational database, MongoDB's document-oriented data model makes it exceptionally easy to add or change fields, among other things. It unlocks Iteration on the project. Iteration f...
Unit Tests and Test Driven Development (TDD) help you really understand the design of the code you are working on. Instead of writing code to do something, you are starting by outlining all the conditions you are subjecting the code to and what outpu...
Domain-Driven Design is nothing magical but it is crucial to understand the importance of Ubiquitous Language, Domain Modeling, Context Mapping, extracting the Bounded Contexts correctly, designing efficient Aggregates and etc. before your next DDD p...
At its core, Microsoft Azure is a public cloud computing platform - with solutions including Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS) that can be used for services such as analytics, virtual c...
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. Follow along to refresh your knowledge and explore the 52 most frequently asked and advanced Node JS Interview Questions and Answers every...
Dependency Injection is most useful when you're aiming for code reuse, versatility and robustness to changes in your problem domain. DI is also useful for decoupling your system. DI also allows easier unit testing without having to hit a database and...