What is Git? How does it work?

A Brief introduction about popular version control system -> Git.

What is this Git?

Basic terms that you should know.

Repository

$ mkdir dummyRepo && cd dummyRepo 
$ git init

Branch

Commit

$ touch README.md 
$ git add README.md
$ git commit -m "Initial commit

Push & Pull

$ git push origin master
$ git pull origin master

--

--

Hey 👋, I am Adarsh, a Web Developer from 🇮🇳

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store