English 中文(简体)
1 D-1, 1 D-1, 1 P-5, 1 P-4, 1 P-3, 1 P-2, 1 P-2, 1 P-2, 1 GS, 1 NS
原标题:Fetching the other TFS branch one by one

我几乎设法把我的所有回头从TFS移到Gite,但我已提出一个大问题,在3小时之后,我对CacheFull的某个具体部门产生了错误。

我看一看,我可以打上主子,然后把所需要的东西加起来,但我却把问题同yn合起来。

举例来说,使用优惠-优惠清单-再分配-分管显示我

 | 
 +- $/Project1/Releases/2.2
 | 
 +- $/Project1/Releases/2.3.0.4
 | 
 +- $/Project1/XXX/DEV

Then I ve done git tfs clone http://tfs:8080/tfs/collection $/Project1/XXX/Main . --branches=none

并 clo着主人。

现在,我利用<代码>git fetch——i$/Project1/Releases/2.2进行了审判,但我要说的是错误。

Unable to locate git-tfs remote with id = $/Project1/Releases/2.2 You may be able to resolve this problem.

  • Try using git tfs bootstrap to auto-init TFS remotes.

I ve also tried doing git tfs bootstrap and doing again the fetch but without luck

任何建议? 或者,如果我与他们坐在一起,我怎么能告诉你,例如项目1/XXX/DEV和项目1/XXX/FOO_3?

Thanks

问题回答

You can try like as below:

  1. Use the option --branches=all o the git tfs clone command to fetch all the TFS branches into a local git repository.

    git-tfs clone <tfs-url> $project .
    
  2. 在当地储存库中,使用git Branch 随附选择>><>-d(<>>>>>-delete<>或<>>>>>><-D>>>>>>>>>>>(>>>>>>>>>>>-deleteforce<><>/strong>

    git branch -D <branch-name>
    
  3. 然后,连接并推向边远盖库。





相关问题
Why not use TFS as a build / CI solution?

Currently our build solution is set up using TFS + MS Build scripts. TFS is also being used as a CI server. I ve seen several posts on this site telling people about other CI solutions. Are there ...

Get files from TFS under Linux [closed]

is there a free (command line) tool for linux which with I can get all files from a TFS-Repository (no Check in / Check out required - only get actual version)?

upgrading tfs 2008 sp1 to use sql server 2008

I have an instance of tfs 2008 supported by sql server 2005. I want to change the sql server machine by doing a restore based move. I also want to change the version of sql server to 2008. I know ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

TFSReg in 2010 Beta 2?

does anybody know what is the equivalent of the TFSReg.exe command-line tool in 2010 Beta 2? I cannot find it anywhere, I searched the entire Program Files tree. Was it renamed? Moved? Replaced by ...