Remove Git binding from Visual Studio 2013 solution? - version-control

I was adding a new Solution to TFS in Visual Studio 2013, and I selected Git as opposed to TFS.
I want to remove the Git binding, and add TFS.
I know you can remove TFS binding from File -> Source Control, but this doesn't seem to be an option here.
How can I remove Git binding from a Visual Studio solution, and add TFS?
Thanks

I don't believe Visual Studio adds anything special for git integration. It just looks for the presence of the .git directory in the solution folder. Delete that folder, possibly hidden, and Visual Studio will no longer consider it a git project.

As #JaredPar mentioned, if you delete the highlighted directories and reload the solution then the solution would no longer be under source control.

Go to Quick Launch(Ctrl+Q)
Search for "Source"
Select the following option
Select the Dropdown list
Choose your source control from list and click "ok"

Just as a side note. If you by accident create a Git repository in a parent folder of a project under TFS, Visual Studio will use Git as source control for that project too.

Related

How to create a branch on a existing folder in AzureDevops in visual studio?

I am working with Source Control Explorer inside Visual Studio, and I am very confused with the way it works:
I have a project, where the structure is:
Folder
Branch
Folder
As in:
I just tried creating one myself (I never created one myself) and I can't ge the same structure... How can I create a branch so I match the above structure??
The only documentation I found is only related to Git in Visual Studio and not to this Azure DevOps-like.
From your screenshot, you are using the TFVC Repo and there is a plus sign in front of your folders. This means that the changes hasn't been checkin to the TFVC repo server side.
To match the above structure, you need to checkin the change first.
Then you can right click on the folder and select Branching and Merging -> Branch.

How do I use .gitignore in visual studio code?

So I know this might sound like a noob question but I'm rather inexperienced with GitHub. I want to add a gitignore file to my repository, but I am unable to do so and I don't know how. I want to make sure a file is gitignored My visual studio code is connected with my repository. So I am able to push and pull via visual code.
Greetings,
Parsa & Liyam
You may go to File > New File at the root of your git repository (same directory as where your .git hidden folder is in). Then add all the directories/file that you want to be ignored into that new file and save it as .gitignore. (You can save as a plaintext file and just name it .gitignore within VS Code.
Vscode 1.46 is adding some automated help in generating a .gitignore file when you publish to github. From v1.46 release notes:
Publish to Github: Generate .gitignore
It's now possible to generate a .gitignore file when publishing a
workspace to GitHub. When publishing a workspace to GitHub, you are
prompted to select which files to include in the repository.
You can press Ctrl+Shift+P on your Visual Studio Code and then search for gitignore. Click the add gitignore option then you are good to go.

How to delete TFS shelvesets from the TFS plugin for Eclipse

I have a ton of shelvesets and I wanted to delete the old ones that aren't relevant anymore. I tried to delete from the Builds tab inside of the Eclipse plugin, but that list is read-only. Is there a way to delete a TFS shelveset from Eclipse directly without having to go into Visual Studio/Visual Studio Team Explorer?
I'm not sure about doing this in Eclipse but there is a tool called TFS Sidekicks which can be used to find and delete the TFS Shelvesets without using Visual Studio/Visual Studio Team Explorer.

Cloning a GitHub project into Visual Studio 2013

The canonical question on 'how to use Git in Visual Studio?' appears to be this one posted by Herb Caudill.
One of the more recent answers notes (correctly) that "Visual Studio 2013 natively supports Git".
So when I go to a Github page (supercolider's is the one I'm trying to clone) and click on the 'Clone in Desktop' button I would expect (hope) that Visual Studio 2013 would take up the link and clone the repository. That is not what happens, instead Windows (I'm using 8.1) asks me if I would like to visit the store to find an app that can handle files of type (github-windows).
What is the correct way to clone a GitHub repository in Windows under Visual Studio 2013? The various MSDN pages (e.g. Share your code in Git or Setup Git on your dev machine) mention GitHub but do not explain how to use it.
It is super easy once you know how :)
From within Visual Studio 2013:
Select File -> Open -> Open From Source Control
The Team Explorer window will come up, one of the sections is "Local GIT repositories". In that section choose "Clone".
That will bring up a path selection textbox and directory browser. Simply replace the default path with the git URL (in your case "https://github.com/supercollider/supercollider")
Thats it!
Note: unless specified otherwise, Visual Studio will store the actual files here:
C:\Users\\Source\Repos\
What you do is go to the Team Explorer, click the Connect to Team Projects, select the Clone option and enter the URL of the Repo you wish to clone and press Clone
To expand on neo12's answer & address the canonical question "how to use Git in Visual Studio"
I agree with neo12. Additionally you can also navigate directly to solutions from the Team Explorer "Local Git Repositories" section by double clicking them
Here is a walk through I put together to explain in concise detail. The video is less than 2 minutes. Let me know if this helps.
http://prestoasp.net/lesson/how-to-work-with-visual-studio-github/

Branch Icon in Team Foundation Server 2010, can it be removed?

recently I removed all branches from a TFS 2010 directory, making it standalone again, however it still has an icon showing that seems to indicate it's a parent to a branch. Is there anyway to remove that icon and make it look like the rest of the folders? This is with TFS 2010. Thanks!
Select this folder in team explorer. Select File menu > source control > Branching and merging > convert to folder.
Regards