0

I opened a project in directory dev/proj1 and it is under local Git source ctrl with Git added via a solution in that directory, using VS2013.

I have another solution under dev/sol2/proj2 that is under local Git source control. I added it to source control in the same way.

I added proj1 to the sol2. It is missing the source control, and there is no File->Source-Control menu when I'm standing on proj1 in Visual Studio.

What can I do?

Community
  • 1
  • 1
pashute
  • 3,965
  • 3
  • 38
  • 65
  • I'd strongly recommend using git via the command line, rather than in an IDE, there's a slightly steeper learning curve, but issues like this disappear, and you have much, much more control over what's happening. – DaveyDaveDave Dec 09 '15 at 14:04
  • How did you judge the project in source control or not? – PatrickLu-MSFT Dec 10 '15 at 07:47

1 Answers1

0

If the menu File->Source-Control you mentioned above is the same as below picture. Then there is no Source Control menu item under File for Git. It’s a normal phenomenon. This menu item is only for TFVC. enter image description here

If the projcet has a padlock icon in solution means it has been in source control. You can also double check it through your Web Portal(Code→Git→Your solution). enter image description here

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62
  • Thank you for the prompt answer. I thought Git solutions had the same UI as TFS solutions. In the meantime I simply created a new solution with all projects under it in the directory tree. Renamed the solutions and the namespaces (including default namespace in the project properties) accordingly. – pashute Dec 15 '15 at 09:12
  • Git maintains a hierachial folder from a 'base', typically the folder where your MainApplication.sln or whatever your solution is name resides. Only way to include external folders in windows is via directory symbolic links, see https://technet.microsoft.com/en-us/library/cc753194(v=ws.11).aspx – mschr Nov 08 '16 at 23:52