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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:46:05+00:00 2026-05-11T16:46:05+00:00

Possibly related to Git – pulling changes from clone back onto the master I

  • 0

Possibly related to Git – pulling changes from clone back onto the master

I was working on an ASP.NET project when I discovered I needed to make an “experimental” set of changes which may or may not have been required in the production version.

The obvious thing to do was to create a branch.

However as I was familiar with darcs and svn but not git, I assumed that a clone was the “normal” way to create a branch (I now know that git branch would have been more appropriate.)

I continued to work on the experimental change in the clone and, at the same time, other changes in the original repository.

Since then I have discovered that the experimental changes are desirable in the production version and would like to merge the two change sets.

If I had originally done a branch instead of a clone, this would be trivial. I’m sure it’s not too hard to merge between separate repositories, but having looked through the docs I don’t think it can be done with a single command (a simple pull does not work.)

I haven’t (yet) explicitly configured one repository as a “remote” of the other, but I am guessing this will be part of the solution.

The upstream repository at the time did not use any VCS – it was just a directory full of zips with version numbers appended to the file names.

So I would like to know:

  • What’s the easiest way to merge the change sets across repositories? (I don’t expect any major conflicts.)
  • Just how harmful is it to clone instead of branching? Have I lost any information by doing this, e.g. shared history, common dependencies?
  • 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-11T16:46:05+00:00Added an answer on May 11, 2026 at 4:46 pm

    In your original “un-branched” git repository, run these commands:

    git remote add name_it_anything /path/to/the/other/git/repository
    git fetch name_it_anything
    git merge name_it_anything/master
    

    That will merge inn all the changes in nname_it_anything. If you don’t want all of them, but just a selection of the commits, you can git log name_it_anything/master to see the list of commits and then git cherry-pick [SHA] for each of the commits you want to merge.

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

Sidebar

Ask A Question

Stats

  • Questions 89k
  • Answers 89k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer use this: <property name="x" location="folder/file.txt" /> the ${X} value will… May 11, 2026 at 5:59 pm
  • Editorial Team
    Editorial Team added an answer As Jared says, You cannot do this unless the other… May 11, 2026 at 5:59 pm
  • Editorial Team
    Editorial Team added an answer Based on your comment The sense of this requirement is… May 11, 2026 at 5:59 pm

Related Questions

I'm using git filter-branch --subdirectory-filter dir/name -- --all to build a repo that only
This I think is related to my use of the nlog C++ API (and
I'm trying to parse the title tag in an RSS 2.0 feed into three
I'm using WinSNMP in c++ to send snmp traps. For backwards compatibility I’m required
How do you usually go about separating your codebase and associated unit tests ?

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.