Reputation: 1863
I want to push my whole project to GitHub except sql.py.
I have two remotes, actually, one to a shared network drive (that should continue to get the updated sql.py), and one to GitHub which has more privacy restrictions.
I tried making a .gitignore but this has the consequence of
Upvotes: 0
Views: 282
Reputation: 26
Simply stage all files except for sql.py
git add --all
git reset HEAD -- sql.py
git commit -m "All project files"
Upvotes: 1