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

  • Home
  • SEARCH
  • 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 8572799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:06:27+00:00 2026-06-11T19:06:27+00:00

I have a current git repository at xp-dev.com, lets call it A. Now I

  • 0

I have a current git repository at xp-dev.com, lets call it A. Now I have created a new project at xp-dev.com which has its own git repository, lets call it B. Now, A have a lot of committed code in it, and I would like to move all content of A including commit-history to B. And B is empty, it is basically just an initialized repository with no checked-in code.

How do I do this? I have tried to solve it myself but it seems almost impossible to just say “push content of A into B”…

Please, help me out, I spent several hours on this last night when I could have done more productive things 🙂

  • 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-11T19:06:28+00:00Added an answer on June 11, 2026 at 7:06 pm

    I’m new to git and I don’t know about the particulars of xp-dev.com, but you should be able to do it with something like this.

    First, clone and mirror the original repository

    git clone --mirror orig-host:A
    

    Then push it up to its new home (providing the repo is already created)

    cd A
    git push --mirror new-host:B
    

    Note: this is destructive to the new repository. It might be worth trying this offline first.

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

Sidebar

Related Questions

I have imported my svn repository to git. My current branch for development is
What are the current best practices with git branches that have been created to
I now have a big honking, bloated, Git repository consuming mucho disk space on
I have an application running in a git repository on a branch (say dev
I currently have a local Git repository, which I push to a Github repository.
i have a git repository that i created some time ago, and i made
I have a project directory like /projects/myProject/src/... and my git repository is on /projects/myProject/src
In my current repo I have the following output: $ git branch -a *
I have current a developed app which I am going to submit in just
We have this current database which we need to replace some tables by anther

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.