Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
698 views
in Technique[技术] by (71.8m points)

how to import Git project to TFS Cloud

I visited our Team Foundation Service page and found a great new feature:

New Team Project + Git

This is great news. We have Projects in Team Foundation Service AND Git. Not as much because I love Git. I was very impressed with it's functionality, but never comfortable with its interface. That said, Git is an accepted standard for Open Source and I love the idea of being able to admin my Git Repos through TFS. Getting the best of both worlds (I hope).

I was able to create a Test Project in Git and am excited.

Problem: for all the site searching, googling, poking, prodding, I can't figure out how to import an existing Git Project into TFS.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

tl;dr: Set your remote and push.

  1. Make sure you enable alternate credentials in Team Foundation Service.

  2. Set your remote: git remote add <name> <url>,
    e.g. git remote add origin https://yourname.visualstudio.com/DefaultCollection/_git/ProjectName

  3. Push it: git push <remote name> <name of branch>,
    e.g. git push origin branchname


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...