Course Tonight

Course Tonight

Did You Know?

Docy turns out that context is a key part of learning.

Chapter 31: git-tfs

Estimated reading: 2 minutes 7 views

Section 31.1: git-tfs clone To clone a TFVS project using git-tfs, use the following command. It will create a folder with the same name as the project, such as /My.Project.Name:

$ git tfs clone http://tfs:8080/tfs/DefaultCollection/ $/My.Project.Name

Section 31.2: git-tfs clone from bare git repository Cloning from a git repository is faster than cloning directly from TFVS, especially in a team environment. Follow these steps to clone from a bare git repository and bootstrap it to work with TFVS:

$ git clone x:/fileshare/git/My.Project.Name.git
$ cd My.Project.Name
$ git tfs bootstrap
$ git tfs pull

Section 31.3: git-tfs install via Chocolatey To install git-tfs using Chocolatey, you can use the following commands. It assumes you will use kdiff3 for file diffing:

C:\> choco install kdiff3
C:\> choco install git -params '"/GitAndUnixToolsOnPath /NoAutoCrlf"'
C:\> choco install git-tfs

Section 31.4: git-tfs Check In To launch the Check In dialog for TFVS, use the following command:

$ git tfs checkintool

This command will take all of your local commits and create a single check-in.

Section 31.5: git-tfs push To push all local commits to the TFVS remote, use the following command:

$ git tfs rcheckin

Note that this command will fail if Check-in Notes are required. You can bypass this by adding git-tfs-force: rcheckin to the commit message.

Leave a Comment

Share this Doc

Chapter 31: git-tfs

Or copy link

CONTENTS