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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:12:51+00:00 2026-06-02T12:12:51+00:00

I downloaded a 3rd party project as non-tracked files (without .git folder) and started

  • 0

I downloaded a 3rd party project as non-tracked files (without .git folder) and started a new git repository with $git init in it, to track my changes.

I later found out that this project already has a public git repository, which has the same state as the bare files I downloaded (is identical to my initial commit).

What I should have done:

Cloned the remote repo and made a new local branch and then pushed it to remote.

What I actually did:

Just took the files and started a clean local git repo (master) in it and made several commits.

What I want to do:

Turn my local initial commit into a branch of the remote repo (change its parent) and keep the changes I’ve already done.

I guess this should be possible, but I don’t know enough Git.

Thanks!

  • 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-02T12:12:53+00:00Added an answer on June 2, 2026 at 12:12 pm

    Well, you could try the following (you may want to use a different name than origin, up to you):

    1. git remote add origin url_of_project_repository
    2. git fetch origin
    3. git rebase FETCH_HEAD

    You have significant chances git will actually figure ot your base and the new remote’s are actually the same set of files, and will resolve the fake merge conflict by skipping anything but your changes.

    If that doesn’t work peroperly, you could also juts clone the “real” repository somewhere else, then re-apply your changes on top of it (and there would be countless ways of doing this, from a very manual DIY way to some more automated means).

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

Sidebar

Related Questions

I have a C++ Builder XE project with several 3rd party controls. Some of
I started using a 3rd party API that depends on XML-RPC.NET using CookComputing.XmlRpc; I
I've been trying to find the so-called lib folder, to install some 3rd-party tools
I've got an application that downloads data from a 3rd party at 3am every
Having downloaded Pango and GLib from the GTK+ Project's Win32 downloads page and having
I have this strange issue. Xcode target does not find my 3rd party mac
How does one go about keeping track of source files, resources, references, assemblies, etc..
I'm new to maven project. I'm changing an ant project to maven project. To
I have the following code that downloads an object from a 3rd party and
I have a 3rd-party installer program that I would like for my users to

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.