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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:27:58+00:00 2026-06-11T21:27:58+00:00

If I have a main project that is version controlled. I then add a

  • 0

If I have a main project that is version controlled.

I then add a remote for a third party plugin

git remote add myplugin <url>

I can then do git pull myplugin master

and it just pulls in the changes from that remote.

Now lets say my project is setup as:

/
/index.php
/whatever

and the remote is setup as

/
/whatever.php

when I pull in the remote I end up with

/index.php
/whatever
/myplugin
/myplugin/whatever.php

this is good.

What I am wondering is,
If I make changes to myplugin,

If I issue git push myplugin master what is pushed?

Is it going to only push changes in myplugin?
or does a remote act as a second repository and will commit the entire repository?

  • 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-11T21:27:59+00:00Added an answer on June 11, 2026 at 9:27 pm

    You would end up, after a git pull myplugin, in /myplugin/whatever.php only if the remote repo already contained /myplugin/whatever.php (not juut whatever.php)

    Adding a remote means pulling all its history and merging it into your repo, or pushing your commits from all your repo into the remote (not just the changes from your local ‘myplugin‘).

    What you are describing (pushing only the changes from ‘myplugin’, or pulling commits only in ‘myplugin’) is called submodules.

     git submodule add url/myplugin myplugin
    

    That would add a directory myplugin, in which you would find a second nested Git repo acting like you describe in your question.
    It isn’t just a new remote, but a submodule url for including in a subdirectory another repo at a specific SHA1.

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

Sidebar

Related Questions

I have a solution with a number of projects. The main project's assembly's version
I have a big Maven project that uses the PMD plugin for code quality
I have a version.c file in my project that contains current revision of the
I have a maven based mule project that was original created with mule version
The scope of this is that we have three main projects. Some of the
I have one main project and another project which is added as a subprojects.
We have one main project and two subprojects. One of the subprojects is the
We have a main visual studio project stored in SVN using the standard trunk/branches/tags
I have a Visual Studio solution containing 2 project: main project and test (via
I have an ASP.NET application with a <codeSubDirectories> section in web.config. My main project

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.