I wonder if someone could give me a pointer on this one. I've started to use Team server with my copy of Visual Studio 2015 community. I'm trying to get all my main solutions synched up, but somehow one of them (Investments4) is showing in team server, but not in my local VS's source control explorer. Here are the two screens. Any pointers would be gratefully received.
The investments 4 project is the Git team project, which should not listed in the Source Control explorer. Also you can’t open Source Control Explorer if you connected to Git team project.
You can check files in repositories of Git team project on web access. (open team project in internet explorer > Code > Files)
Related
Visual Studio is connected to GitHub in Manage Connections > GitHub
I have GitHub Extensions for Visual Studio installed.
In Preview Features, the following are checked...
GitHub Action support in Publish
New Git user experience
I am running Visual Studio in Admin mode.
I have restarted the compute and Visual Studio multiple times.
I have a local repo opened.
I have been able to connect the project to GitHub and commit code already, but now I am unable to.
I can see the menu in the Extensions > Customize Menu dialog (see attached).
Still, my repo is not connected to GitHub and I don't see the menu item.
What am I doing wrong?
Can you see "Add to Source Control" in lower right corner of Visual Studio window? If yes, click it and then click Git. In my case, Git menu appeared after this action.
In my case there was no "Add to Source Control" in lower right corner. File > Clone repository... also did not help. But I was able to connect to remote repository via VS Get Started window.
I figure this may be somewhat of a common question, but I am still having trouble with what I am finding. Note: I am very new to deploying applications. I have created my first application, an ASP.NET MVC application using Visual Studio Community 2015(I am using enitity framework for the database if that matters). It is time for me to deploy it. I have all my files on gitHub. Now I believe it is time for me to commit to my remote repository on AppHarbor (which I have the link for), but I just can't seem where to do it. It seems to be so simple. I'm using the team explorer. Again, I am very new to programming and deploying applications, so any help would be amazing. Again, from what I understand I need to connect to my remote repository now. I could be wrong. Thank you very much for any insight.
Inside Visual Studio, open the 'Team Explorer - Connect' Window. Default Shortcut for that should be Ctrl+/ + Ctrl+M.
Inside the Team Explorer window, Click on the green plug like button that you see that says "Manage Connections". You will be able to connect to your remote repo from here.
After that, Click on 'Clone' and paste your repo's URL in the yellow text box:
If your remote repo is on the GitHub, this is where you can find the URL to your remote repo:
Well, that's it.. you're connected! To commit your changes, you can easily find the "Changes" section in 'Team Explorer' window. Here's a screenshot for that too:
Note that in my case some of the buttons shown may be Disabled. That should not be a problem to you if you have files with changes, etc.
I don't know about Visual Studio, but with git you need to push your changes to a remote repo, so maybe you have a "push" somewhere ?
First you need to add this remote repository.
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/
Recently I tried out the new TFS-Service, and really liked the built in Scrum template for project management, and the new ability to create a team project managed with Git.
It would seem that the Git integration is only possible when using Visual Studio on windows though. Using Eclipse (with the Team Explorer plugin) I was unable to work with a git-based team project.
Is this really the case?
Heres what I've tried:
In TFS Service, I have a git-based team project with some commits in it.
In Eclipse, I connected to the team project, but it seems I can't pull or even see the source in any way. Source control explorer doesn't show any code (or any paths even).
In TFS, I created a new git-based team project. In Eclipse I created a new project and used Team -> Share... to try and get the code into TFS. But selecting TFS there doesn't seem to have the disired effect: it doesn't understand that it's a git-based team project, and so it doesn't try to push the code with git, but upload it to a new path ($/some/path/here/).
So is that it, or perhaps there's a workaround? Maybe I did something wrong?
BTW - I know about using TFS with git-tf, and I'm OK with that option, but it's not what I'm asking.
Thanks.
We're working on improving this for the next major version of Team Explorer Everywhere (TEE), but this is what you'll want to do today.
Eclipse already has a full featured Git version control provider in the eGit plugin. This is installed in many versions of Eclipse but if you do not have it you can install it from here:
http://marketplace.eclipse.org/node/1336
To use eGit today against the hosted service you must enable alternate credentials in TFS (click on your name in the top right corner, My Profile, Credentials then enable and configure your credentials).
Once this is enabled you can point eGit at your service account repo and you are good to go. In the Import or Share wizards pick Git and then follow through th eGit dialogs.
When you make a commit, if you add #123 into the work item comment it will associate the commit with that work item number when you push it to the server.
Now, I mentioned that we are trying to make this better. What we are aiming to do is show you both your TFVC and your Git related projects when you import and share and if you have picked a Git repo then we'll help you get your credentials set up, clone it and get the version control parts of Eclipse hooked up to eGit (assuming you have eGit installed). We'll also make sure that the other Team Explorer Views (such as work items, builds etc) all work great and that links to Git commits etc do the right thing. Hope that makes sense - but if anyone wants to talk more about how Git projects will work in future versions of Team Explorer Everywhere then feel free to drop me a mail (martinwo#microsoft.com)
I worked on a small project a while ago using Rational Team Concert eclipse. I got rid of it when I was finished the project.
I remember we could go to the team view and open the browser to view our team tasks and user stories and files. I have been googling around for that login page so I can see my old project files again but haven't had any luck.
Does anyone know where I can access my old project files stored on the source control server?
There are 3(!) "Team" view in an RTC client:
Team artifacts (with the Work Items, Build and Source Control sections for each Project Area)
Team Organization (with all the members)
Team Dashboard (with your work items, the event logs and Team Load)
I suspect you need to go to the Team Artifact view, get back your project area and check if you still have your repository workspace there for a given Stream.
If yes, you need to load it again to your disk, creating a local workspace or sandbox, in order to get back your Eclipse project.
If not, create a repo workspace on the right Stream and load it.
See "Flow changes cross repositories with Rational Team Concert" for more on that sequence of operations.