3

I want to

  • provide an initial version of the file in git,
  • and ignore all future changes

But using .gitignore does not seems to work for me, as the file will show up as modified in git status, even listed in .gitignore, once tracked in git.

Is it possible?

xpt
  • 20,363
  • 37
  • 127
  • 216
  • @ObsidianAge, thx, will `git rm --cached` keep the file for people to do the initial clone? – xpt Feb 14 '19 at 20:23
  • @PhilRoss, will `git update-index --assume-unchanged` prevent it from appearing as modified in the ***future***? That answer was not clear. – xpt Feb 14 '19 at 20:26
  • @MadPhysicist, thx, the help there is helpful, but that's not what I'm asking -- "_If you want to change the working tree file, you need to unset the bit to tell Git_" -- I _need_ to change the file, yet tell git to forget it at the same time. – xpt Feb 14 '19 at 20:40

0 Answers0