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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:11:33+00:00 2026-06-08T10:11:33+00:00

I have a component in a separate repository which I would like to use

  • 0

I have a component in a separate repository which I would like to use in an application in its own repository. Later on, I will probably pull in some other 3rd party libraries too.

From what I know I can achieve similar things using symlink or submodule. Is this the right understanding? If so, when should I use one versus the other?

  • 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-08T10:11:35+00:00Added an answer on June 8, 2026 at 10:11 am

    They are different concepts that achieve similar, but not equal, things.

    A symlink points to another file inside of your computer. This is important to know, because it wouldn’t make any sense to put a symlink inside of your repository, because other people wouldn’t be capable of using the same symlink (so, conflicts ahead, because everybody would try to edit this symlink to use the submodule on their own respective computers).

    A submodule tells your repository that it should rely on another repository. You can put that in your repository because it points to the main repository of the submodule. When you publish your repository, other people will be capable of cloning it and using the submodules.

    So, I’d go with submodules. It makes more sense, you can work across computers, and you don’t rely on static paths.

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

Sidebar

Related Questions

I am writing a TotalCommander-like application. I have a separate component for file list,
I'm trying to build a basic application which will have 2 separate components which
I have a Flex application which references a separate MXML file as a template
I have my main application, which contains several instances of a component that create
I want to keep each component of an application in a separate, independant repository,
Since I cannot put conditions on elements in a component, I have to separate
I have: @Component class MyDecorator{ private Cache cache; /* some wrapped methods like get
Please consider such scenerio: I have component called TMenuItemSelector which has two published properties:
I have component which needs to update the database for the customer and customer
I have the main component of my program which runs in the main thread.

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.