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 4568976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:09:11+00:00 2026-05-21T19:09:11+00:00

I have a project with a simple local git repo, and I want to

  • 0

I have a project with a simple local git repo, and I want to move this project (folders etc.) to another computer and work from there from now on. I don’t want to have anything left on the old machine (except of course my other git projects). I want it to be as if I have been working from the new machine all along.

Can I simply move all the files over to that computer, or will there be a problem with keys? Should I have the same key across two machines? If simply moving all the folders can’t be done, what should I do? I want to avoid the hassle of setting up and learning to use a server, since this seems complicated and I don’t want to alter my workflow.

  • 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-05-21T19:09:12+00:00Added an answer on May 21, 2026 at 7:09 pm

    For your case, the best way to do it is to copy over the folder (copy, scp, cp, robocopy – whichever) to the new computer and delete the old folder.

    I completely disagree with @Pablo Santa Cruz that cloning is the paradigm for what you are doing. No it is not. You are moving a repo to a new computer.

    Why I don’t like clone for this purpose:

    • It creates remote-tracking branches for each branch in the cloned repository. You are moving, and the old repo is defunct.
    • Any remote branches and other refs are completely ignored.
    • You don’t get your hooks if you had any and you might forget that you had them!
    • You cannot get “lost” commits etc using git reflog or other means. Might not be a huge issue, especially if the repo acted as a server but something to be aware of.

    If you search for ways to backup a git repo, git clone wouldn’t be in the top answers. So it shouldn’t be used for moving a repo! I also feel that just a git clone cannot be a proper answer because git clone has the --mirror option, which preserves the repo, meaning that a git clone repo is different from git clone --mirror repo (apart from being bare, the differences are mostly those I mentioned above). I would do a copy because I know what I get with the copied repo – the same repo!

    When to consider git clone:

    1. It is faster as git does some optimization while cloning
    2. You might have different git version on the new machine and a copy might make the repo unusable in the other version (not very common nowadays). But actually this can be another pro for copying, since this would inform you that that the new computer has a different git version.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem building a fairly simple local CGO project. Consider this very
I have a local file SVN repo of a project that needs to move
I have this simple test project just to test the IncludeExceptionDetailInFaults behavior. public class
I have a simple java project (adapted from the example here ), which is
I have a local git repository a central repo at github. I'm working on
I am just learning Blend/Silverlight/VS2010/.net/etc. I have a simple project that resides on a
I have a project I am working on my local computer, and deployed in
In my simple project I have 2 views - a line item view (Brand)
Hope you are fine. I have to make a Web Project (very simple) I
I'd like to try out the D programming language. I have simple pet project

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.