How to uninstall git from Visual studio? - visual-studio

Please suggest the option of Uninstalling the GIT Source Control Provider. I've never used it and have used TFVC for many years. I have no intention of ever using GIT but today when I added a project to source control it went to GIT instead of TFVC even though my default provider was and always has been Visual Studio Team Foundation Server

I've never used it and have used TFS for many years. I have no intention of ever using GIT
Don't presuppose of the future! 😉
There is a big switch movement for a reason (even Microsoft switched to it internally). Perhaps you should have a careful look at it because it brings a lot more flexibility and other things that could improve your development workflow.
Also FYI, the right term is TFVC, not TFS (which is the whole ALM solution and that could host TFVC or git repositories) .
Anyway...
You must not uninstall git tool but uninstall git plugin of visual studio. There are some solutions proposed (remove some registry keys or rename extension file) here:
How can you disable Git integration in Visual Studio 2013 permanently?

Related

How to disable git source control on visual studio 2019?

The "Git for Windows (32 bit)" process makes Visual Studio 2019's CPU usage high which bugs me because I have multiple programs open at a time, so my PC lags. I've looked up on how to disable git on Visual Studio 2019, Tried the solutions on this link, but they didn't seem to work. My Visual Studio 2019 version is 16.6.0.
Disabling git via going to Tools / Options / Source Control / Plug-in worked thanks to #dxiv's comment, I didn't know because I was looking at old answers.
I found that I was able to solve this issue by removing the .git folder that was in my user root directory. It was C:\Users\MyUserName\.git I don't know where it came from. It did not correspond to any of my legitimate GitHub repositories. It was large and seemed like it was constantly trying to index and prepare my entire user directory to push to a remote repository that did not exist.
This also resolved other ways the seemingly same issue presented itself in both VS2019 and VS Code.
Just delete the c:\users\yourusername.git folder and VS will stop showing GIT in Team Explorer.

How to quickly switch source control providers in Visual Studio 2010?

I'm currently working on .Net projects that are using either Git or Mercurial (Hg) source controls. I use Visual Studio 2010 for all of these projects. As I often have to switch source control providers I was wondering if there's a quick way to do this, so I don't have to go Tools -> Options -> Source Control once an hour.
A much better solution would be if Visual Studio would recognize which source control provider it needs or maybe remember which provider was used for a certain project. Can that be done?
With a nudge in the right direction I managed to handle this problem even better then expected - no switching necessary.
For Mercurial solutions I use VisualHG and for Git I use Git Source Control Provider. I also installed HgSccPackage. Now I don't really know how or why this works, but I've got GitSCC selected as the Source Control Provider in the settings, but when I load a Mercurial project VisualHG takes over. All I have to do is set the SCC to VisualHG the first time I open the project, close the project, change back to GitSCC and when the project is reloaded VisualHG will be used for it.
Interestingly it does not work without HgSccPackage installed. If someone can explain this, please do.
Note that it does not seem to work the other way round.
I use Git in combination with VS 2010 by keeping a commandline screen open. I do my work in Visual Studio and when I'm ready to make a commit, I switch to the commandline screen.
If you do this, you can use Git and Mercurial side by side in combination with VS 2010.

Visual Studio integration with free SCM

I am looking for TFS free alternatives to manage source code. I ve worked with CVS and SVN. I know GIT and Mercurial, but I still haven´t worked with them.
I would to use anyone of them integrated with Visual Studio, with the same ease which use TFS (Solution Explorer contextual menu, a dockable source explorer, etc).
Do you know free plugins to do this?
I would highly suggest using Mercurial.
With visual studio, there is a free plugin http://visualhg.codeplex.com/.
In addition, there is a windows shell package you can install called tortiseHG which makes it super easy to deal with Mercurial in windows. http://tortoisehg.bitbucket.io/
There are other plugins that you can use for SVN and GIT.
For GIT, you might use msysGIT, which again has nice shell integration features:
http://code.google.com/p/msysgit/
As well as visual studio extensions
http://code.google.com/p/gitextensions/
For SVN, there is AnkhSVN http://ankhsvn.open.collab.net/
If you havent used alot of SCM's, I would highly recommend trying out Mercurial. Distributed SCM's are quickly becoming the optimal way to deal with source control. It's just the right way to do things.
Here are a couple of resources to get you started if you are interested in Mercurial:
Excellent tutorial by Joel Spolsky:
http://hginit.com/
Thorough coverage of Mercurial features:
http://hgbook.red-bean.com/
Best of Luck.
I use Git Extesions. It has nice windows gui and visual studio plugin. It works with cygwiin and msysgit.
I use Mercurial with TortoiseHg which provides Explorer context menus and status icons and the VisualHG plugin which provides Visual Studio integration and.
The level of integration with Visual Studio is not quite as slick as the level of integration that you get with TFS, nethertheless combined they make a very productive working environment. In fact in certain areas I prefer the integration over the TFS integration - in particular I find the TFS explorer a tad cumbersome as it requires that an instance of VS be running. In contrast the TortoiseHg repository explorer is very lightweight and quick to start.
I used "AnkhSVN" (http://ankhsvn.open.collab.net/) plugin to access SVN. Worked like a charm :)
I haven't done many things with GIT at the moment, but if you are familiar with SVN and are working under Windows you may have found TortoiseSVN yet. I recommend to give TortoiseGIT a try.
In fact I do not see any need for a tight integration into MS Visual Studio. I'm currently working with Access and (shame on me) Visual Basic 6, and there is no Subversion integration at all. Checkin/out, viewing the logs, branching and many other things work quite well under TortoiseSVN.
The last time I used this integration was Visual SourceForge, which by default provides file locks. This made it necessary to get a good integration. As SVN and GIT don't provide locks in the first place, I prefer to use a stand-alone client.
If you are using Tortoise SVN and Visual Studio, I highly recommend VisualSVN Visual Studio plugin. It is not free, but it's well worth the money.

How to use Mercurial from Visual Studio 2010?

Version Control noob alert
I've already installed both Mercurial, TortoiseHg and VisualHG into Visual Studio 2010. I've set in Visual Studio my source control to Mercurial.
When I right click on my solution, I already see HG's buttons in the context menu that appears there.
My question now is, how do I make this version control thing work? It seems I'll have to make some kind of configuration before, as it tells me "Solution is not under Mercurial version control" when I click in "HG Status".
Thanks
with tortoiseHG you can rightclick on an explorer window and do tortoiseHG -> Create Repository Here which runs hg init for you. I believe currently there is no way to run hg init from visualHG.
TekPub has a good free video for using Mercurial with TortoiseHG, VisualHG, and VS along with pushing the repository to the public via CodePlex. In it, Rob Conery shows how to create a repository in your VS solution and how to work with commits, branches, merging, etc.
It's especially good for those coming from a Subversion background because he points out how branches/merging/forking is not so challenging in Mercurial as it's been known to be in Subversion.
YouTube link as other link is dead:
https://www.youtube.com/watch?v=HV8e1NQ-8gU
Not sure how to do this within Visual Studio but it is easy to do from the command line. Just
exit VS and go to a command prompt at the root folder of the project(s) you want to put under source control and type "hg init". Then load the solution and verify that hg is the selected source code provider.

Using Git with Visual Studio [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
As a long-time Visual SourceSafe user (and hater) I was discussing switching to SVN with a colleague; he suggested using Git instead. Since, apparently, it can be used as peer-to-peer without a central server (we are a 3-developer team).
I have not been able to find anything about tools that integrate Git with Visual Studio, though - does such a thing exist?
What are the technologies available for using Git with Visual Studio? And what do I need to know about how they differ before I begin?
In Jan 2013, Microsoft announced that they are adding full Git support into all their ALM products. They have published a plugin for Visual Studio 2012 that adds Git source control integration.
Alternatively, there is a project called Git Extensions that includes add-ins for Visual Studio 2005, 2008, 2010 and 2012, as well as Windows Explorer integration. It's regularly updated and having used it on a couple of projects, I've found it very useful.
Another option is Git Source Control Provider.
I use Git with Visual Studio for my port of Protocol Buffers to C#. I don't use the GUI - I just keep a command line open as well as Visual Studio.
For the most part it's fine - the only problem is when you want to rename a file. Both Git and Visual Studio would rather that they were the one to rename it. I think that renaming it in Visual Studio is the way to go though - just be careful what you do at the Git side afterwards. Although this has been a bit of a pain in the past, I've heard that it actually should be pretty seamless on the Git side, because it can notice that the contents will be mostly the same. (Not entirely the same, usually - you tend to rename a file when you're renaming the class, IME.)
But basically - yes, it works fine. I'm a Git newbie, but I can get it to do everything I need it to. Make sure you have a git ignore file for bin and obj, and *.user.
Git Source Control Provider is new plug-in that integrates Git with Visual Studio.
I've looked into this a bit at work (both with Subversion and Git). Visual Studio actually has a source control integration API to allow you to integrate third-party source control solutions into Visual Studio. However, most folks don't bother with it for a couple of reasons.
The first is that the API pretty much assumes you are using a locked-checkout workflow. There are a lot of hooks in it that are either way expensive to implement, or just flat out make no sense when you are using the more modern edit-merge workflow.
The second (which is related) is that when you are using the edit-merge workflow that both Subversion and Git encourage, you don't really need Visual Studio integration. The main killer thing about SourceSafe's integration with Visual Studio is that you (and the editor) can tell at a glance which files you own, which must be checked out before you can edit, and which you cannot check out even if you want to. Then it can help you do whatever revision-control voodoo you need to do when you want to edit a file. None of that is even part of a typical Git workflow.
When you are using Git (or SVN typically), your revision-control interactions all take place either before your development session, or after it (once you have everything working and tested). At that point it really isn't too much of a pain to use a different tool. You aren't constantly having to switch back and forth.
I find that Git, working on whole trees as it does, benefits less from IDE integration than source control tools that are either file based or follow a checkout-edit-commit pattern. Of course there are instances when it can be nice to click on a button to do some history examination, but I don't miss that very much.
The real must-do is to get your .gitignore file full of the things that shouldn't be in a shared repository. Mine generally contain (amongst other stuff) the following:
*.vcproj.*.user
*.ncb
*.aps
*.suo
but this is heavily C++ biased with little or no use of any class wizard style functionality.
My usage pattern is something like the following.
Code, code, code in Visual Studio.
When happy (sensible intermediate point to commit code, switch to Git, stage changes and review diffs. If anything's obviously wrong switch back to Visual Studio and fix, otherwise commit.
Any merge, branch, rebase or other fancy SCM stuff is easy to do in Git from the command prompt. Visual Studio is normally fairly happy with things changing under it, although it can sometimes need to reload some projects if you've altered the project files significantly.
I find that the usefulness of Git outweighs any minor inconvenience of not having full IDE integration but it is, to some extent, a matter of taste.
Microsoft announced Git for Visual studio 2012 (update 2) recently. I have not played around with it yet, but this video looks promising.
Here is a quick tutorial on how to use Git from Visual Studio 2012.
Also don't miss TortoiseGit...
https://tortoisegit.org/
There's a Visual Studio Tools for Git by Microsoft. It only supports Visual Studio 2012 (update 2) though.
Visual Studio 2013 natively supports Git.
See the official announcement.
The Git support done by Microsoft in Visual Studio is just good enough for basic work (commit/fetch/merge and push). My advice is just to avoid it...
I highly prefer GitExtensions (or in less proportion SourceTree). Because seeing the DAG is for me really important to understand how Git works. And you are a lot more aware of what the other contributors to your project have done!
In Visual Studio, you can't quickly see the diff between files or commit, nor (add to the index) and commit only part of modifications. Browse your history is not good either... All that ending in a painful experience!
And, for example, GitExtensions is bundled with interesting plugins: background fetch, GitFlow,... and now, continuous integration!
For the users of Visual Studio 2015, Git is taking shape if you install the GitHub extension. But an external tool is still better ;-)
TortoiseGit has matured and I recommend it especially if you have used TortoiseSVN.
The newest release of Git Extensions supports Visual Studio 2010 now (along with Visual Studio 2008 and Visual Studio 2005).
I found it to be fairly easy to use with Visual Studio 2008 and the interface seems to be the same in Visual Studio 2010.
The simplest solution that actually works quite well is to add the TortoiseGit commands as external tools.
Solution to adding a Git (TortoiseGit) toolbar to Visual Studio
As mantioned by Jon Rimmer, you can use GitExtensions. GitExtensions does work in Visual Studio 2005 and Visual Studio 2008, it also does work in Visual Studio 2010 if you manually copy and config the .Addin file.
Currently there are 2 options for Git Source Control in Visual Studio (2010 and 12):
Git Source Control Provider
Microsoft Git Provider
I have tried both and have found 1st one to be more mature, and has more features. For instance it plays nicely with both tortoise git and git extensions, and even exposed their features.
Note: Whichever extension you use, make sure that you enable it from Tools -> Options -> Source control -> Plugin Selection for it to work.
As of 2013-02-11, the Microsoft Git plugin for Visual Studio 2012 should work with the Express version as well.

Resources