(or how to use Git in unfriendly environment!)
git tfs clone http://myTfsServer:8080/tfs/TfsRepository $/MyProject/TruncName .
git tfs quick-clone http://myTfsServer:8080/tfs/TfsRepository $/MyProject/TruncName .
At the Visual Studio first opening, choose to deconnect temporary the solution from the server (otherwise it will modify some files)
git tfs fetch
git tfs ct
! Always do a fetch & rebase (or a merge) before the commit (to avoid a overwrite of a file by your modifications)
git tfs rcheckin
Note : During the use of rcheckin, you can add references, in your local commit message, to Tfs workitems to associate or close them ( during the commits on the TFS Server).
The synthaxe is the following :
git-tfs-work-item: <id> associate
git-tfs-work-item: <id> resolve
Since the version 0.16 of git-tfs where my work was merged, you could easily fetch a TFS branch with the command :
git tfs init-branch $/MyProject/BrancheName
git tfs fetch -i myTfsBranch
git tfs ct -i myTfsBranch
http://www.drrandom.org/post/2011/11/16/Grappling-with-multiple-remotes-in-git-tfs.aspx
http://stackoverflow.com/questions/8559814/merge-two-tfs-branches-with-git-tfs
Report des changeset d’un depot git vers tfs:
https://groups.google.com/group/git-tfs-dev/browse_thread/thread/929d005ff9cdcc23
http://www.tigraine.at/2010/09/01/using-git-from-powershell-just-got-easier-posh-git/
https://github.com/git-tfs/git-tfs/issues/171
https://github.com/git-tfs/git-tfs/issues/172
https://github.com/spdr870/gitextensions/issues/869