Member-only story

Top Git Interview Questions And Answers (2024)

Pravin M
29 min readAug 17, 2023

--

Top Git Interview Questions And Answers (2024)

Source:- Git Interview Questions

If you’re on a free Medium plan, click here to read — Free Access

For more questions and answers visit our website at frontend interview questions

  1. What is git and what are the most useful commands ?

Git is a distributed version control system commonly used for tracking changes in source code during software development. It allows multiple developers to work on a project simultaneously, keeping track of changes made to files over time, and enables collaboration and efficient management of code repositories. Here are some of the most useful Git commands:

  1. `git init`: Initializes a new Git repository in the current directory.
  2. `git clone `: Creates a copy of a remote repository on your local machine.
  3. `git add `: Adds a file to the staging area, preparing it for a commit.
  4. `git commit -m “”`: Records changes to the repository, creating a new commit with a descriptive message.
  5. `git status`: Displays the current state of the repository, including modified, staged, and untracked files.
  6. `git pull`: Fetches and merges changes from a remote repository into the current branch.

--

--

Pravin M
Pravin M

Written by Pravin M

I am a frontend developer with 10+ years of experience Blog :- https://www.frontendinterviewquestions.com

No responses yet