Questions tagged [git-tfs]

Git-Tfs is a Windows open sourced two-way bridge between TFS(TFVC) and git, similar to git-svn.

Git-tfs is a command-line based source control bridge that allows you to work with Git locally, reducing the number of operations to communicate with the TFS source control server to exactly three operations: Clone, Checkin and Fetch (or Pull).

Major features

  • Clone a TFVC repository in a git repository
  • Syncing new changesets/commits (fetch, pull and rcheckin)
  • TFS branch support with merge support
  • Shelveset support
  • Workitems support
  • Migrate from TFVC to Git

Online resources

204 questions
79
votes
3 answers

What's the difference between git-tf and git-tfs?

I've recently been getting really fed up with TFS. I've heard that there is a light at the end of the tunnel though. Apparently I can use either git-tf or git-tfs and treat my code as if it was managed by git, but be able to push/pull to/from a…
Earlz
  • 62,085
  • 98
  • 303
  • 499
49
votes
3 answers

How do I use git-tfs and idiomatic git branching against a TFS repository?

How Do I Use git-tfs Idiomatically? The git idiom is to check out branches to the root directory of the repository. Checking out a branch will replace the contents of the directory with the contents of that branch. The TFS idiom is to check out…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
24
votes
4 answers

Associating git commits with Team Foundation work items

Context A GitHub Enterprise installation used for development. Every developer has his own public repo, and the organization has the authorative repo. Pull requests are used for code reviews, and we loosely follow nvie's git flow branching model. A…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
21
votes
2 answers

How do I remove a package installed via Chocolatey?

I installed gittfs using cinst gittfs How do I now remove the gittfs package?
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
19
votes
2 answers

Sync TFS and GIT

Today we have all our source code on our local TFS server. Now we want that some external parties can access a portion of the code. We therefore looking at the possibility that e.g. Clone this code to an external GIT server they can access. I have…
magol
  • 6,135
  • 17
  • 65
  • 120
16
votes
1 answer

Merge no common commits into master branch?

I have a Git repo that has a lot of commits and separate code, say /Proj1 I also have another Git repo that has 1 commit in it that is not a common commit, /Proj2 How can I merge the two repos and have history show up correctly with parent…
m00nbeam360.0
  • 1,342
  • 1
  • 13
  • 26
16
votes
2 answers

Migrate Git to TFS with all history

Is there any way to migrate a git repository to TFS with all it's history like versions, branches and push messages? Now the source is on Github and I want to migrate that to my local TFS repository.
ehsandotnet
  • 1,050
  • 3
  • 16
  • 26
14
votes
3 answers

Merge two TFS branches with git tfs

I'm using git-tfs, and I was wondering if it is possible to merge two TFS branches using git-tfs. I have two branches $/MyCompany/Dev & $/MyCompany/Release-3.3. Release-3.3 originates from the Dev branch. Both are checked out as different git…
Ceilingfish
  • 5,397
  • 4
  • 44
  • 71
14
votes
3 answers

Best practices and issues on using git-tfs bridge

Well, I started this topic mainly to share the experience I had with git-tfs recently with the community. If anybody has anything else to share - it will be helpful for me as well.
Ivan Danilov
  • 14,287
  • 6
  • 48
  • 66
13
votes
2 answers

git-tfs: How do I clone a tfs project that contains spaces

I am trying to clone a TFS repository using git-tfs. It works great with TFS projects that don´t have a space in the name, such as: git tfs clone http://tfs:8080/ $/TeamProject/folder But I also have some projects/folders that has both spaces and…
Zeno
  • 581
  • 1
  • 7
  • 23
11
votes
2 answers

Visual Studio error pushing to remote git - git-tfs migration

I am trying to migrate a TFVC project to Visual Studio Online git repository using git-tfs. Everything works fine for the migration however now whenever I try to sync using Visual Studio 2015 I get this error. Error encountered while pushing to the…
dotnetmensch
  • 586
  • 2
  • 6
  • 20
10
votes
1 answer

Git to TFS 2008 one way migration (with history)

I'm a newbie to Git. I'm exploring one-way one-time migration of Git repository to TFS (with history). I'm looking into plugin git-tfs. I couldn't find any help/wiki/blog on this particular scenario. Can I use git-tfs checkin or git-tfs clone…
Manish Jain
  • 9,569
  • 5
  • 39
  • 44
9
votes
1 answer

Connecting to a TFS server closes a Git solution

I'm using Visual Studio 2013 with the new built-in Git support. Our project is managed in TFS 2010, but because of inertia/stubbornness, I use git-tfs for source control. I still use the TFS issue tracker etc. In VS2012, this worked fine - VS just…
millimoose
  • 39,073
  • 9
  • 82
  • 134
8
votes
1 answer

Cloning TFS repository using git-tfs

I'm trying to clone a GIT repository in TFS using git-tfs using TFS 2013 git tfs clone http://servername:8080/tfs/DCM "$/Python" Gives me: error: the path $/Python you want to clone doesn't exist! "DCM" is the name of the collection and "Python"…
David Yang
  • 2,101
  • 13
  • 28
  • 46
8
votes
3 answers

How do I combine several Git repositories without breaking file history?

We are trying to migrate away from TFS. Using the git-tfs tool, we were able to migrate parts of the existing repo, but it crashes at certain troublesome checkins. We have been able to make a patchwork set of Git repos that cover most of the…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
1
2 3
13 14