[英]Using git-tfs for local branching
I've installed git-tfs, and done a git-tfs clone http://.....
我已经安装了git-tfs,并完成了
git-tfs clone http://.....
However, I'm wondering if there's a way to do local branching using git-tfs? 但是,我想知道是否有办法使用git-tfs进行本地分支?
For example, an equivalent of git checkout -b myBranch
例如,相当于
git checkout -b myBranch
The team I'm working on seem to use only one branch from what I can tell on the tfs server, so i'd like to branch locally if possible? 我正在工作的团队似乎只使用我可以在tfs服务器上知道的一个分支,所以如果可能,我想在本地分支吗?
Everything you do localy should be done with git (and not git-tfs) and you could do everything you want (create branch, rebase or merge,...). 您在本地进行的所有操作均应使用git(而不是git-tfs)完成,并且您可以执行所需的所有操作(创建分支,重新设置基础或合并...)。
git-tfs is only used to interact with TFS (fetch changesets or commit changesets). git-tfs仅用于与TFS交互(获取变更集或提交变更集)。
But (because there is always a 'but' ;) ), you should NEVER modify the commits already commited to git-tfs! 但是(因为总是有一个'but';)),所以永远不要修改已经提交给git-tfs的提交! Just add commit to the 'master' branch and commit it on TFS...
只需将commit添加到'master'分支并在TFS上提交...
If one day, you will use tfs branch, you could find answer in this stackoverflow question : How do I use git-tfs and idiomatic git branching against a TFS repository? 如果有一天,您将使用tfs分支,则可以在以下stackoverflow问题中找到答案: 如何针对TFS存储库使用git-tfs和惯用git分支?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.