How do I make Git ignore the contents of a file? -


is there way make git ignore contents of file?

i have file automatically overwritten compiler every time build process runs, compiler fails if file doesn't exist. if file empty compiler still happy. there no point in updating file every time commit in git because going overwritten anyway.

there's no point in checking such file in @ all. there 2 things need here:

  1. from git's side, need add file .gitignore, git ignores completely.

  2. from build's side, need make sure file there (e.g., on *nix system, touch it) before start compilation.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -