gitvisual-studio-2015team-explorer

Using Visual Studio 2015, how to commit only one file?


What I've tried: I don't recall to have an issue when in VS2013. When in VS2015, I've tried the context menu inside one code file or right clicking just that file from Solution Explorer, yet it includes all changed files.

I've also tried filtering and that doesn't help narrow down the checkin.


Solution

  • View->Other windows->Pending Changes
    

    Then exclude whichever file you do not want to commit.