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.
相关问题
- Getting error: File extension specified '.webt
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Using TFS command line tf.exe how can I copy a rep
- Emacs shell: save commit message
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is it possible to do a “destroy history” in TFS?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
Install git-tf from Codeplex source, MS Downloads, or better yet:
choco install git-tf
Then run the following commands:
First you need to configure your GIT repository
Check in the files, optionally persisting author/USERMAP:
This process is very slow, but it works, so ensure you have plenty of time to spend migrating. The only downside is that commit time will be the current checkin time, not the original changeset time.
The Branches in TFS are mapped to folders, which doesn't easily convert from the way branches work in Git. Grabbing one branch and pushing that, with history to TFS should be possible though. You'll have to use
Git tf checkin --deep
See:
If you want to migrate to TFS the easiest migration path is to TFS 2013 or Visual Studio Online, which has native Git support.