Git Cheat Sheet

To initialize git project

$ git init

To clear the .gitignore cache

$ git rm -r --cached .
$ git add .
$ git commit -m ".gitignore is now working"

To remove specific file from git cache

$ git rm --cached filename

To list the remote repos

$ git remote -v

To add the remote repo

$ git remote add origin <repo_url>