How do git triggers work?

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?

+5
source share
2 answers

After git pull myplugin, in, /myplugin/whatever.phpyou're done only if the remote repo already contained /myplugin/whatever.php(not juut whatever.php)

( "myplugin" ).

, ( "myplugin" "myplugin" ) submodules.

 git submodule add url/myplugin myplugin

myplugin, Git, , .
, url SHA1.

+6

, ... push- GIT , , .

, , .

, , , .

0

All Articles