Sniipe
Sniipe

Reputation: 1296

How do I use gitIgnore to ignore launchSettings.json?

Scenario: In my launchSettings I specify "launchBrowser": true, In my colleague's he prefers "launchBrowser": false,

I've tried adding the following to gitIgnore but they always appear as a "change" (in VS2019)

launchSettings.json
**/Properties/launchSettings.json

enter image description here

Upvotes: 3

Views: 2682

Answers (1)

Deep Shah
Deep Shah

Reputation: 54

Kind of a crappy way to do it, but you can add the filename to .gitignore, cut the file to another directory, commit the .gitignore and file deletion change, then bring your settings file back.

Upvotes: 2

Related Questions