Skip to content
Bhuvaneswaran Balasubramanian
Go back

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>


Previous Post
Upgrade Node.js to the latest version on Mac OS
Next Post
React Cheat Sheet