Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I was having the same problem. I don't know why.</p> <p>However, after a bit of playing around, I managed to get the following working. Disclaimer: can't guarantee this is actually the correct way to do it. It may bork things further. And whether it does the same as what the missing 'Publish' menu item is supposed to do, I have no idea. Use at your discretion...</p> <ul> <li>Get the url of your git repo in the project you set up in TFS. <ul> <li>Go to your project in the TFS web interface, then Code tab.</li> <li>You should get a message that gives you the URL.</li> <li>e.g. <a href="https://user.visualstudio.com/DefaultCollection/_git/YourProject"><a href="https://user.visualstudio.com/DefaultCollection/_git/YourProject">https://user.visualstudio.com/DefaultCollection/_git/YourProject</a></a></li> </ul></li> <li>Edit the .git/config file on your local repo. <ul> <li>Configure the origin remote to point to your TFS repo.</li> <li>(note: if you already had an origin remote, you might want to rename that first to keep it)</li> </ul></li> </ul> <p>e.g.</p> <pre><code>[remote "origin"] url = https://user.visualstudio.com/DefaultCollection/_git/YourRepo fetch = +refs/heads/*:refs/remotes/origin/* </code></pre> <ul> <li>Open your solution in Visual Studio.</li> <li>Edit a file.</li> <li>Do a commit.</li> <li>Do a push.</li> </ul> <p>This should hopefully push your local repo to your TFS remote as origin.</p> <p>From here things seem to be working for me -- the code is up in my TFS web interface at least, and I can push commits to it. I can add backlog items etc. I'm new to TFS though so not sure if it's actually all working as it should be.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload