Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9246047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:24:10+00:00 2026-06-18T09:24:10+00:00

We need to generate a TFS repository from a Git source code base, we

  • 0

We need to generate a TFS repository from a Git source code base, we would like to preserve the original commit history, so I tried to use Tf-Git “git tf checkin –deep” command that is supposed to create a TFS changeset for each Git commit.

Unfortunately this step fails because a lot of commits in the Git repo have two parents due to merges, and TFS requires commit history to be linear to be able to import it. So I am getting the following error:

git-tf: cannot check in - commit 2b15822 has multiple parents, please rebase to form a linear history or use --shallow or --autosquash

This is understandable. But what can be done about it if the existing Git repo has a long chain of such commits? I know it’s possible to spend a day or two revising commit history manually, but that’s not what we want to spend our days on. Do I understand correctly that there is no automated way of fixing commit history to become linear, so unless we want to spend many hours on manual work, we should just import the whole history as a single changeset?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:24:12+00:00Added an answer on June 18, 2026 at 9:24 am

    A rebase should actually solve this for you.

    git rebase -i <hash of commit before first branch has been created>
    

    In the window that pops up when you execute that command, don’t change anything. Simply save and close.

    An illustration:

    A <- B <- E <-----F <- G      master
         ^            ^
          \          /
           - C <- D -             branch
    

    Commits C and D were on a branch and have been merged into master with the merge commit F.

    Now, executing git rebase -i B will yield the following result, when executed from master:

    A <- B <- C <- D <- E <- G    master
    

    Please note that the merge commit F disappeared, because it would be empty.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to generate a directory in my makefile and I would like to
I need to generate a couple of objects from lists in Javascript. In Python,
I need to generate Entities/Object from selected tables - not all. Is this possible
I need to generate a random number from the following data: 0-10 : 23%
I need to generate a list of radio button inputs from a List ,
I need to generate thumbnail from video files, i m using IMediaDet to get
I need generate codes from this letters $a = array( 'B','C','D','F','G','H','J','K','L','M','N','O', 'P','Q','R','S','T','V','W','X','Y','Z','1','2', '3','4','5','6','7','8','9','0' );
I need to generate random numbers, but from as wide a range as possible
I need to generate random values using Random object. It generates values from 0
I need to generate java class definition from json data. Is there any tool

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.