0

I have a file that I want to update (e.g. change it while I do git pull), but never upload (e.g. when I do git commit), or at least don't upload it "by default" with almost all commits (but I may have some temporary local changes). How can I do this in PyCharm? I'm using it since inspecting commit changes with GUI is easier for me and I'm pretty sure it has an option for this.

qalis
  • 1,314
  • 1
  • 16
  • 44
  • It doesn't because GIt cannot do that. Git doesn't push files — it pushes commit. Once a file is tracked it is in all commits; there is no way to commit a file but not push it. – phd May 18 '21 at 09:19
  • @phd ok, so how can I protect file from being commited, while at the same time receiving new changes? – qalis May 18 '21 at 09:48
  • https://stackoverflow.com/a/43535767/7976758 Found in https://stackoverflow.com/search?q=%5Bgit%5D+commit+file+ignore+changes – phd May 18 '21 at 10:24

0 Answers0