0

Each developpers have a different connection string to use their own database in app.config file. But this file must be versionned in GIT because we add some app settings.

Is there a way to do that in Visual Studio ? We can do in GitHub desktop to choose if some pieces of code not to be pushed but if we could do the same in VS, it will be greater.

Thanks Thanks

user1069516
  • 443
  • 1
  • 7
  • 19
  • is that what you want to do https://stackoverflow.com/questions/1085162/commit-only-part-of-a-file-in-git ? – xplo4d Jul 19 '19 at 14:44
  • Possible duplicate of [Partially stage files with Visual Studio](https://stackoverflow.com/questions/41225582/partially-stage-files-with-visual-studio) – Shayki Abramczyk Jul 21 '19 at 08:59

1 Answers1

0

I think the comment provided by Shayki Abramczyk could help you.

As Matthieu Charbonnier mentioned in the case: he could use SourceTree to just index the partial chunk he need, and do rest of the selection and the commit in Visual Studio (VS understand and split the file in two modifications).

You can also try the method that morty mentioned in the case:Using GitTools integrated into vs.In advanced mode (checkbox above the file list) you can stage or reset selected lines. https://marketplace.visualstudio.com/items?itemName=yysun.GitTools

For other methods and details,please refer to the case.

Hugh Lin
  • 17,829
  • 2
  • 21
  • 25