I'm having trouble understanding exactly how the .gitignore file works.
Say I have the following .gitignore:
/db/*.sqlite3
/log/*.log
/public/uploads/*
On all of my computers, I have a file /db/development.sqlite3
My questions are:
If the file is already in the repository, will it pull down the version in the repo every time I git pull?
Do files in the gitignore file need to be untracked on all systems in order to not pull or push to or from the repo?
If I decide to add another line /tmp/** /* to my gitignore after the fact, do I need to go into each workstation/live server to untrack the files? And do I need to push a version to the repo that has /tmp/** deleted?**