GitHub Desktop Solution To Ignore Changes to File In Local Repository

0

I have a repository on GitHub, one of the files within the project is a settings file that contains various settings that will be different per user who downloads it, but it's essential to include it in this repository as a template so they know which settings are available to modify. When I clone this repository using GitHub Desktop to the local folder, I modify the settings file to include my personal information that SHOULD NOT be recognized as a change that should be committed. So I add that particular file to the .gitignore and it still recognizes it as a change. I need this file to absolutely not be allowed to be committed, unless of course there are additional changes to add additional settings in the future, to which I have no problem using other means (outside GitHub Desktop) to update the base file.

I do not have git or bash or whatever it's called. Command line says git is not a recognized command. Nor do I plan to install a one-off utility program for it. I just don't want a solution that's like: oh it's easy, you just git -thisthing -dillybob and I have to pretend like I know what that means, or how to use it.

Also, do not flag this as a duplicate because all other similar issues assume that the file to be ignored shouldn't exist in the source control, this file should. No solutions have been found or discussed for this particular case.

codemann8

Posted 2019-12-12T07:31:06.787

Reputation: 65

No answers