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 answers
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
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in TFS
- Azure DevOps Server witadmin error 500 when downloading/uploading workitem XML
- How to fix a CS0281 error on build server
- Integrate Deployment status to Work Items in TFS
- How to customize data sources in the dropdown box of TFS work item templates
- How to add nuget package for offline tfs build task
- Using Azure DevOps Server 2022 (On-Premise) with Visual Studio Code for Java Project
- Ticketstatus on DynamicsCRM updates on TFS Ticketstatus change
- Limiting access to files in Github while being edited by other collaborator
- Trying to read commits from azure devops rest api results in redirects
- ADOS .NET: Exchange SOAP Methode to REST equivalent
- DevOps 2022 Server not connecting on VS 2012 and VS 2010
- TFS integration with Jenkins
- Preventing Merge and Branch your own code on TFS
- Get all users of an Ado or TFS project
- Reduce AzureDevOps aka. TFS Database size
Related Questions in GIT-TFS
- Build error after migration from tfs to git using git-tfs
- Unable to push "git-tfs" cloned code to remote origin
- Migrating TFS repo to bitbucket using shell script
- Migrating TFVC to Git wrong hierarchy on TFVC
- git lfs push is throwing "RPC failed" error
- git-tfs: Unable to clone TFS project
- Unauthorized error with git tfs list-remote-branches
- TFVC to Git conversion with git tfs problematic folder
- Go from TFS to Git
- Sync git branches after migration from tfvc
- Removing large files from TFS cloned git repository
- Is it possible to use git-tfs utility to migrate a TFVC repo local copy (residing on a disk) to git?
- git-tfs when trying to clone TFVC repo error contacting server
- Git-tfs Clone: Option to not create temporary workspace (or specify existing permanent workspace)?
- git-tfs , copy history from one TFS project to another TFS project
Related Questions in TFS-MIGRATION
- Change TFS Work Item Type In On Premises before Azure migration
- Build error after migration from tfs to git using git-tfs
- Cannot import twice the same collection to Azure DevOps Services
- Azure Pipeline Build Agent using subst
- Restore Out the Box Process
- Migrate from TFS 2010 to Azure DevOps online
- Git-TF pushes changes to a wrong server
- How to Migrate a single Team project from TFS 2012 to Azure DevOps Services?
- TFS Work Item Migration from 2018 to Azure Devops
- Can two instances of the same TFS version share a data layer
- Is it possible to migrate only source and code history from Azure DevOps Server to Azure DevOps Service?
- Migrate a Non-English TFS Project Collection to DevOps
- Migrate from TFS 2013 to 2017 with Excel
- TfsMigrator: "VS4032856: The identity ** belongs to a different Azure Active Directory (AAD) tenant"
- tfsmigrator organization (dryrun) created in azure devops cannot delete
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?
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)
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.