Common Git Commands Awesome

All are most welcome to update this list by sending PR's.

Let's make this list useful to most of Git users where they can refer this list to find the command they are looking for.


$ git status

Pull changes

$ git pull

Add changed file / folder

$ git add <file/folder-name>

Add all changed files

$ git add .

Revert changed file / folder

$ git checkout <file/folder-name>

Revert all the changed files

$ git checkout .

Commit changes

$ git commit -m "Your message here."

Push changes

$ git push

Clone new repository

$ git clone <repo-url>