To set up an integration with a TFS repository for the project:
Click the Options button on the Code Review Board.
Go to the Projects tab.
Select a project from the list.
Click Add New Repository.
Select TFS as a repository type.
Specify a Host — your TFS server URL, for example:
Note: To connect Visual Studio Online services, you need to specify a project collection in the Host field (e.g. https://myaccount.visualstudio.com/DefaultCollection/).
Specify the TFS server settings
Enter a Description.
Click Credentials, and enter the login information to connect to Team Foundation Server, then click OK.
You will be notified when a connection is established (or if the connection failed).
The simplest way to specify remote and working directories is to open Source Control tool window of the Team Explorer and copy corresponding values from there. An example of Remote directory for TFS: $/Projects/MyProject.
Optionally, you can select the Use Windows authentication check-box.
Note: Working directory path may vary for different PCs. The settings are stored only for the current Windows user. You can also set the working directory as a default directory or reset it to the default value.