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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:05:58+00:00 2026-05-28T04:05:58+00:00

I started using git to track my customizations to a 3rd party web app.

  • 0

I started using git to track my customizations to a 3rd party web app. I interface with consultants that have been using git to track their changes for a while. I’ll try to make this easy to understand.

  • I have a copy of an export from one of our environments
  • I started a repository using the export as a base [LOCAL] and have been committing to it regularly
  • The consultants have their own repository that is up to date (excludes my changes) [3RDPARTY]
  • I’ve forked their git repo [REMOTE]

Now from here all I want to do is go through and merge all the files that are different between [LOCAL] and [REMOTE].

I don’t care about the branches or history I currently have in LOCAL. I only care about using REMOTE from now on and sending/receiving pull requests to interact with the consultants.

How do you recommend I can do this? I tried creating a new branch on LOCAL and overwriting all the files with the updated files from 3RDPARTY. Then I was hoping a merge between that new branch and my regular dev branch would give me a conflict so I could easily merge them all with KDiff3 but instead it just automerged and overwrote all my changes instead.

  • 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-28T04:05:59+00:00Added an answer on May 28, 2026 at 4:05 am

    You tried to copy all the files over and just get a merge but it didn’t work. That should work, but I think you may need to follow some different steps which I’ll try to explain.

    There should be a tag, or checking in 3RDPARTY that was identical to a checkin point in your export environment which is the first checkin to LOCAL. I will call this checkin MERGE_BASE. So try these steps:

    • First of all do git checkout master on REMOTE and make sure it is
      up to date with 3RDPARTY with git pull origin.
    • In REMOTE git branch mergeb <MERGE_BASE> <MERGE_BASE> is the
      checkin I spoke about in the history that is identical, or as close
      as identical, to what you would have in your initial creation of
      LOCAL.
    • Copy the source for your most up to date version in LOCAL directly
      over top the files in your mergeb branch we just created in
      REMOTE. DONOT copy the .git directory!
    • In REMOTE on branch mergeb use git add to make sure all your
      changes are applied to the git index and then run git commit. Now
      your REMOTE mergeb branch should have identical source to what is
      in LOCAL. (you could use git remotes to do this with your LOCAL
      changes, but since you don’t care about history I recommend just
      doing it this way to simplify the process).
    • Checkout the master branch again git checkout master.
    • At this point create a new branch that you will use to contribute to
      them.. do git checkout -b remote_work.
    • Now, simply merge the mergeb branch into your remote_work branch
      with git merge --no-ff mergeb. At this point you will probably
      have all the conflicting merges with their work and your work to
      resolve.

    Once you finish this process and commit the work to your branch you should be now in the exact state you wanted.

    After all of this, if you want all your work to appear as if you started with what is currently in 3RDPARTY while on the remote_work branch on REMOTE simply do git rebase master.

    From then on out I would keep master on REMOTE synced with their 3RDPARTY repo and keep your changes which hasn’t been pulled into 3RDPARTY in the remote_work or other various branches on the REMOTE repo.

    Let me know if this process works out for you.

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

Sidebar

Related Questions

I just started using git with github. I followed their instructions and ran into
I've just started using Git and I love it, but I have had an
I have just started using git. Rebase is great stuff. I should have used
I have started using the Android StrictMode and find that it would be great
We have recently started using git and had a nasty problem when someone committed
I have started using Git in the middle of my project, where the first
I've just started learning Git, and the tutorial I'm using says that when cloning
What I'm doing: I'm working in Xcode, and started using Git not that long
I've just started using Git and find that whilst I am implementing a feature
I recently started using Git as my version control system for some Cocoa projects

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.