If I have a main project with a controlled version.
Then I add a remote for a third-party plugin
git remote add myplugin <url>
Then i can do git pull myplugin master
and he just pulls the changes from this remote.
Now let's say that my project is configured as:
/
/index.php
/whatever
and the remote is configured as
/
/whatever.php
When I pull out the remote I end up
/index.php
/whatever
/myplugin
/myplugin/whatever.php
it's good.
I am wondering If I made changes to myplugin,
If I give git push myplugin masterout what is pressed?
Will there be only change changes in myplugin? or does the remote act as a second repository and commit the entire repository?
source
share