-1

Ever since I started using git, whenever I open my visual studio, this appears:

enter image description here
And then if I make a new project, it gets added to the repository. Is there any way to disable this and allow me to manually open repositories? I see no such option in Tools > Source control
This is very annoying.
I have Git tools 1.4.1, Git extensions 1.0.5 installed as extensions.

wingerse
  • 3,670
  • 1
  • 29
  • 61

1 Answers1

1

Since git tools is integrated by default in Visual Studio 2013+, what you can check is:

  • making sure Git Extensions are not installed (they are for VS 2005 to 2013 anyway)
  • check if the issue persits

The OP Empereur Aiman adds in the comments:

I ended up using Git Source Control Provider 2015 , not the microsoft one :) And it seemed to have solved the problem.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • So uninstalled both git tools and git extensions. But it stills does the same thing :/ – wingerse Oct 24 '15 at 20:17
  • @EmpereurAiman Then it is a feature from VS 2015 (which has git built-in). I'll check on that front. – VonC Oct 24 '15 at 20:18
  • Did you get to know about anything? – wingerse Oct 25 '15 at 14:42
  • @EmpereurAiman I have not, I suspect it is built-in in the way git is integrated with VS 2015 – VonC Oct 25 '15 at 16:44
  • Yes. But before I first started a git project, these stuff never happened. – wingerse Oct 25 '15 at 18:10
  • @EmpereurAiman and those projects that you are opening, are they in a git repo? (is there a `.git` folder in them or in the parent folders of those projects) – VonC Oct 25 '15 at 18:11
  • What happens is when I make a new project, it automatically goes to the repo at another place in my harddrive. Yes that folder has a .git file. – wingerse Oct 25 '15 at 19:32
  • I went to Tools> Source Control. Then selected "None". Then it works normally, created new projects in the correct folder (not in a repo). Whenever I select Source control to microsoft git provider, The message in the OP shows in output and new projects are created at the repo again. – wingerse Oct 25 '15 at 19:38
  • @EmpereurAiman Did you at one point follow https://msdn.microsoft.com/Library/vs/alm/Code/git/get-started and clone a git repo as described in this page? – VonC Oct 25 '15 at 19:45
  • @EmpereurAiman So if you were to go to the "Team Explorer" view of Visual Studio 2015, there wouldn't be an active git repo? – VonC Oct 25 '15 at 20:30
  • There is always an active repo there : http://prntscr.com/8v9v15 Always when I open VS – wingerse Oct 25 '15 at 20:31
  • @EmpereurAiman there should be a way to close it or to "unload" it. May be http://stackoverflow.com/questions/934875/how-to-work-offline-with-tfs#comment43643260_934890 ? – VonC Oct 25 '15 at 20:41
  • @EmpereurAiman https://msdn.microsoft.com/en-us/library/ms181475.aspx is a good read too. Maybe clearing the cache? (search for "Q: How do I clear the cache on client computers?") – VonC Oct 25 '15 at 20:47
  • I ended up using [Git source control provider](https://visualstudiogallery.msdn.microsoft.com/51e11ccc-6334-4873-912d-bf5025eb115d) not the microsoft one :) And it seemed to have solved the problem. Thanks for the help :) – wingerse Oct 25 '15 at 21:57
  • 1
    @EmpereurAiman Great! I have included your comment in the answer for more visibility. – VonC Oct 25 '15 at 22:00