Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 309
Sniipe Avatar asked Dec 01 '25 03:12

Sniipe


1 Answers

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.

like image 160
Deep Shah Avatar answered Dec 02 '25 19:12

Deep Shah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!