Git Commands
git init
git clone <repository_host>
git add <filename>, git add *
git checkout -- <filename>
git commit -m “Commit message”
git commit -a
git push origin master
git status
git diff
git remote add origin <server>
git remote -v
git grep "foo()"
git fetch origin

git reset --hard origin/master

Former Software Engineer @axiatadigitallabs |SLIIT | Electrical and Electronic Engineering | Contact me — ashan.lakmal1995@gmail.com

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