DEV Community

Cover image for Top 20 most asked Git Questions in Interviews.
Piyush Kumar Singh
Piyush Kumar Singh

Posted on

Top 20 most asked Git Questions in Interviews.

Reference : Git

  1. What is the difference between reset and revert?

  2. What is the difference between Git and other version control systems?

  3. What is a Git repository?

  4. What is the working directory in Git?

  5. What is the staging area (index) in Git?

  6. What is a commit in Git?

  7. What is the HEAD in Git?

  8. What's the difference between a fast-forward merge and a
    recursive merge?

  9. What is a detached HEAD state?

  10. What is Git stash?

  11. What is Git rebase?

  12. What is the difference between merge and rebase?

  13. What are remote tracking branches?

  14. What is Git cherry-pick?

  15. What is the difference between reset and revert?

Other References :

_Java8 : Link
Advance Java : Link
Core Java : Link
Java OOP's : Link
Spring Boot : Link
Advanced Spring Boot : Link
Linux : Link
ReactJS : Link
API : Link
OS : Link
NodeJS : Link
Python : Link
HTML : Link
_

Image description

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →