As for git to stop tracking changes to this file without adding it in .gitignore (i.e. storing in the repository the original version)?

The project has a configuration file which every developer configures by itself.

If you add it in .gitignore this will remove the file from the repository and a new developer it will not download.
As a result of his build project in General will not start.

You need to save the original file in the repository.
Then when you start Assembly you will receive messages which lines of which files he needs to customize

How to make these changes are not tracked by git?
April 19th 20 at 12:20
4 answers
April 19th 20 at 12:22
Solution
File example .env:

There is a file with environment variables that the application uses and contains some data, which should not be turnips. If the boys do so:
1. Create in me file .env.dist, which after cloning turnip just copy and rename it .env
2. Writing in this sample configuration, but without the critical data
3. Create locally a file .env
4. Add .env in .gitignore

All ))
April 19th 20 at 12:24
Solution
The issue of:
git update-index --skip-worktree YOUR-FILE
April 19th 20 at 12:26
If you add it in .gitignore this will remove the file from the repository

No
You need to save the original file in the repository.

Need to push the file, then add it in .gitignore
.gitignore after commit remove a file from a turnip
the new developer will not get it - vicente_Batz commented on April 19th 20 at 12:29
@vicente_Batz, ignore the file does not remove or anything, just stops to follow - Katelyn_Hansen commented on April 19th 20 at 12:32
April 19th 20 at 12:28
Add the file to the repository, then add it to the ignore file in a turnip and will lie and will not be overwritten

Find more questions by tags Git