Question

I've installed git-tfs, and done a git-tfs clone http://.....

However, I'm wondering if there's a way to do local branching using git-tfs?
For example, an equivalent of 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?

Was it helpful?

Solution

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-tfs is only used to interact with TFS (fetch changesets or commit changesets).

But (because there is always a 'but' ;) ), you should NEVER modify the commits already commited to git-tfs! Just add commit to the 'master' branch and commit it on 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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top