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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:40:22+00:00 2026-05-26T17:40:22+00:00

I only have git local. So, I have my project in my machine. Than,

  • 0

I only have git local. So, I have my project in my machine. Than, I copy and paste all files of project (so the gits files was there) in another computer and make commits. Then make commits in my computer.

So I have this situation:

#Computer 1
   |A => Make a lot of comits
   | =>Duplicate all file here

#Computer 2
   |B => Make other commits
   | =>Duplicate all file here

I want do this, join the 2 project and create 2 different branch

  |A    |B
   \   /
     | => Duplicate all files here

Then I can easy merge using the common merge of 2 branch

     |C => Merged,
   /   \
  |A    |B
   \   /
     | => Duplicate all files here

How can I do this: Join 2 duplicate project in 2 branch with local files?

  • 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-26T17:40:22+00:00Added an answer on May 26, 2026 at 5:40 pm

    Make on each repository a remote of the other project: either by file sharing or copying back both repositories on the same computer.

    $git remote add computer2 <path-to-other>
    

    Then fetch changes

    $git fetch computer2
    

    At this point you have your local branch and the other branch, as remote branch

    Merge the remote branch back with

    $git merge computer2/master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a local git repo created by Qt Creator during the New Project
I have a project I am working on my local computer, and deployed in
When I'm on master, I only have to type 'git push' to push commits
I only have experience with log4net however that does not mean that there are
I only have one computer (running OS X), and need to test in both
I only have SQL Server 2008 (Dev Edition) on my development machine I only
I have forked an SVN project using Git because I needed to add features
Is there any way to use Dropbox to sync selected local files? I like
In our project files, if there are binary files, such as .doc, .xls, .jpg,
I am using git on a project, that generates lots of data-files (simulation-results). I

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.