Version Control using Git and Github (Part 1)

$ sudo apt-get install git (or)
$ sudo apt-get install git-all
$ git --version
$ git init
$ git add <filename> — to add a particular file in the working                         
directory to the staging area
(or)
$ git add . - to add all the files in the working directory to the
staging area
$ git status
$ git commit -m "Commit Message"
$ git log
$ git reset <hash>
$ git reflog
$ git revert HEAD
$ git revert <HASH>
$ git rm <Filename>

--

--

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