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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:12:52+00:00 2026-06-04T02:12:52+00:00

I have an application that depends on a 3rd party open source project hosted

  • 0

I have an application that depends on a 3rd party open source project hosted on github (let’s call it “https://github.com/3rd-party-org/3rd-party-lib”. This project has a “master” branch and multiple version-specific branches (e.g. “x.y”, “x.z”).

I want to be able to occasionally submit fixes to the open source project, while maintaining local branches on my dev machine that (a) keep up-to-date with the 3rd party project’s branches, and (b) contain my fixes, including those that I have not yet submitted to the 3rd party project, and those I have submitted but which have not yet been accepted and merged (and maybe never will be, but nevertheless I need those changes for my own use).

I’m pretty new to git, and I’d like to get off on the right foot here.

Here’s what I’m thinking, please advise on whether this makes sense or if there are preferable alternatives.

As an initial setup:

  • clone “https://github.com/3rd-party-org/3rd-party-lib” to my local dev environment
  • in my local repo, create branches off each of the 3rd-party-defined branches, e.g. branch “my-master” from “master”, “my-x.y” from “x.y”, etc.
  • fork the 3rd party repo on github (e.g. to “https://github.com/me/3rd-party-lib”), so I have a place to push fixes, and from which I can send pull requests to the 3rd party lib maintainer.

When I want to work on a fix to the 3rd party project, I would (in my local dev environment):

  • make sure “master” is up-to-date by pulling from origin/master
  • merge “master” into “my-master”
  • create a topic branch off “master” (e.g. “issue-123”)
  • when ready, push my topic branch to my forked repo on github, and submit a pull request to the 3rd party project
  • back in my local environment, merge my topic branch into “my-master”, so that when building my dependent project against “my-master”, I see all my fixes.
  • if applicable, backport my fixes to “my-x.y” or “my-x.z” branches by cherry-picking them from “my-master”, so that I can build against a specific version of the library instead of “my-master” if I don’t want to live on the bleeding edge.
  • 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-04T02:12:54+00:00Added an answer on June 4, 2026 at 2:12 am

    This depends on how the 3rd party lib accepts pulls or patches. Some will accept a pull request from a direct fork, which others will request you use a branch. Still others may not accept pull requests, and ask that patches come from another source.

    Aside from the details of getting the patch back to the 3rd party, you appear to be on the right path for maximum flexibility.

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

Sidebar

Related Questions

We have a MVC application that depends on a number of 3rd party products
I have a general question that is rather open-ended (i.e. depends on platform, application
I have a (REST) application that handles CRUD operations initiated by a 3rd party,
We have an application that depends on a number of groups of third-party DLLs.
I have an application that depends on other .net assemblies. When I start the
We currently have an application that depends largely on stored procedures. There is a
The scenario is the following: Lets say I have this application App that depends
I have an application that apparently needs some obscure DLLs. I reference a 3rd
I have an application that depends on a generic HttpHandler I created, and it
We have a medium sized application that depends on several usercontrols, namely: A tablelayout

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.