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.
Migrate Git to TFS with all history
20.4k Views Asked by ehsandotnet At
2
There are 2 best solutions below
0
mzagozda
On
Install git-tf from Codeplex source, MS Downloads, or better yet:
- Chocolatey Package:
choco install git-tf
Then run the following commands:
First you need to configure your GIT repository
git tf configure http://yourserver.com:8080/tfs/DefaultCollection $/RepositoryNameCheck in the files, optionally persisting author/USERMAP:
git tf checkin --deep --autosquash --keep-author
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.
Related Questions in GIT
- Push mysql database script to server using git
- Git show's file path
- Git > diffs filtered, show only certain changed classes/files
- Pushing to git repository hosted by Visual studio online without entering user name and password
- How do I create my own Git branch to work on?
- Git init --bare giving error fatal: Out of memory? mmap failed: No such device
- Sub-directory into independent repository and later merge back into main repository
- How to find the Git Revision Hash in a synced SVN repo using SubGit?
- eclipse errors when try to change to master git branch
- How to have Heroku build my development branch on a staging server?
- Is "Merged in" a commit message created by bitbucket, or git?
- Git: Multiple projects under one directory
- Permission denied hg-git
- Is it possible to clone a private git repo without adding ssh keys
- Track file in master repository which is ignored in submodule
Related Questions in TFS
- Missing Header (Feature Title and Toolbar) on some Feature Work Items in TFS Web Access
- Upgrading separate Project Collection Database to new TFS Version
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- The merge tool is not showing when call Workspace.ResolveConflict method in TFS 2012
- HowTo: change a project's status from `Invalid` to `Valid`?
- TFS 2013 Object reference not set to an instance of an object in Team Explorer
- Release Management for Visual Studio 2013 - Release Exception
- Visual studio 2013 team project has been deleted
- TFS version control does not show conflicts
- include typescript file in output result build with TFS
- Team Foundation 2012 not recognising changes in vb6 app
- WebDeploy from TFS using Build Definitions to IIS site containing files changed by users
- Team Foundation plugin for Android Studio
- TFS 2013 with Octopus Deploy, Email Template - Resolved Bugs/User Stories
- What is the best branching strategy in TFS to share code between multiple team projects?
Related Questions in GIT-TFS
- Clear Git repository
- How to share selected projects in a Visual Studio solution between TFS and GIT?
- Visual Studio Git - HEAD & Master branch under remote/origin
- how to pull changes from master branch into another branch (this branch created from master previously) in the root in git-tfs
- Migrating multiple hierarchical TFVC branches into TFS-GIT
- Use TFVC and GIT-TFS in one solution simultanouesly
- How do I use git-tfs and idiomatic git branching against a TFS repository?
- cloning a git-tfs central repo, and hiding TFS
- Git to TFS 2008 one way migration (with history)
- Migrate Git to TFS with all history
- Merge Local Repositories using GIT-TFS
- Unable to push "git-tfs" cloned code to remote origin
- Installing Git-TFS without Git itself
- How to use git tfs with a team
- Git-Tfs sending the wrong identity to tfs during shelve
Related Questions in TFS-MIGRATION
- OpsHub Migration - Rename Task Timing Out
- How to Migrate TFS 2013 Database to New Hardware?
- To add a field in TFS Agile Template or live with Defaults?
- Complicated TFS 2017 Upgrade
- Migrate specific project from TFS 2012 to 2013
- OpsHub migration: OH-SCM-003 and OH-SCM-002 - changeset for two projects assigned to one work item
- TFS Migration changetype mapping
- TF60024 Error attempting to migrate VSS to TFS
- migrate TFS 2010 project collection to TFS 2012
- Migrate Git to TFS with all history
- Migrate from GIT to TFS and retain timestamp for check-in
- migrate data from TFS 2008 to an already working TFS 2012
- Change TFS Work Item Type In On Premises before Azure migration
- tfsmigrator organization (dryrun) created in azure devops cannot delete
- TfsMigrator: "VS4032856: The identity ** belongs to a different Azure Active Directory (AAD) tenant"
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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 --deepSee:
If you want to migrate to TFS the easiest migration path is to TFS 2013 or Visual Studio Online, which has native Git support.