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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:57:04+00:00 2026-05-27T23:57:04+00:00

Our project uses several third-party open-source libraries, some of which require custom modifications. For

  • 0

Our project uses several third-party open-source libraries, some of which require custom modifications.

For each library we created our own local git repository, added the original source location as a vendor remote, cloned from there, modified it as needed and pushed it to an internal remote repository (let’s call it origin).

These repositories are then used as submodules in our core project.

The problem:
The “vendor” remote url is not propagated to the “origin” and is therefore lost to anyone who clones the internal library repository.

Every time you want to merge the new upstream changes for a library, you need to find and manually add the vendor remote again (or use the exact same local repository created at the beginning, if it’s still available).

Is there a better way to store the vendor repository url so that it can be propagated and used by every developer? Adding an extra file (e.g. clone_from_here) to the library doesn’t seem very elegant, either.

  • 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-27T23:57:04+00:00Added an answer on May 27, 2026 at 11:57 pm

    You can do it via .git/config. After you have successfully pulled or pushed your change, look at the .git/config file and make a note of the remote url and fetch

    After the repository has been cloned by your developer(s), open up .git/config on the developers machine and add the line you have copied. Example –

    [remote "vendor"]
        url = git@xxx.com:xxxxx/xxxxxxx.git
        fetch = +refs/heads/*:refs/remotes/origin/*
    

    Your developers can now push or pull to vendor in this example.

    If you need more control on writing the fetch url – there is excellent documentation on this at gitguys – http://goo.gl/JGaKD

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

Sidebar

Related Questions

In our project we have requirement that, after receiving sms message from third party
I'm currently working on a closed-source commercial web-project which uses MariaDB as the database.
In our project we have several production databases and many devs. Each production database
Our project currently uses Crystal Reports for Visual Studio 2008. We need to upgrade
I have an old project at our company that uses shell scripting a lot.
Our project is held in a SourceSafe database. We have an automated build, which
In our project we have UI and logic (which may be represented as a
Our project uses an LDAP repository for storing users. In production this will be
Our project application uses Java 5 and now when I update Java 6, there
Our project uses Hibernate (3.3.2) with c3p0 as our connection pool. For a while,

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.