Saturday, August 23, 2014

[Level 1] git ignore

If you want git not to commit some temporary files or log files...etc., you could create .gitignore file to ignore them. If you don't have any idea about which file should be ignore, you could also download ignore templates that prepared by github.
mkdir ~/git-home
cd ~/git-home
git init
git clone https://github.com/github/gitignore
cd ~/my_py_project
cp ~/git-home/gitignore/Python.gitignore ./.gitignore

Wish this helps.

regards,
Stanley Huang