Join GitHub today
Can't checkout PR when there are untracked files #1271
The extension often won't let me checkout PR branches.
This can be due to trivial things like build artifacts being added to the staging area.
This can be caused by build artifacts/tools (NCrunch) adding files to the working directory. Untracked files usually wouldn't be a problem when using Git from the command line, they can be a real nuisance when using the extension.
This is particularly problematic when the untracked files appear in submodules. The Git command line arguments necessary to clean them up aren't at all obvious (to me at least).
The current check is done here:
This issue is even more insidious when an untracked file gets added to a submodule. Here I'ved added
Visual Studio (below) and the Git command line doesn't give much of a clue as to what's going wrong. You can see that something might be up with the