I have a project in Git that I'm going to install in many PC. There's a configuration file named config.ts and has the following structure:
export var config = {
apiUrl: "",
local: "",
scannerUrl: "",
reportPrinterUrl: ""
}
What I need is to create the file if not exists when I execute the git pull origin master command, but stop tracking it when it's modified so it can be modified in any pc and the configuration won't be pushed or erased in the next pull.
I've read some questions and articles but I've seen many options like git stash, --asume-unchanged and still not pretty sure how to do it.
(Sorry for bad english)
EDIT
The most simple way that I've found to just forget about the file is to execute this command in every pc
git update-index --assume-unchanged <file>
EDIT 2
Like torek said in the comments, the current best solution is to create the "template" file and name it "config.blank.ts" (or something like that) and then add to .gitignore the "config.ts" file. So the procedure should be cloning the repo and then copy the file to config.ts and then modify it.