I have two remote repositories. The first one (Framework) get's pulled into the second one (MySite). I make some changes to MySite, like CSS for example, and push it all to the MySite repo.
Now, if I (or another dev) change a PHP file, User.php for example (which is stored on the Framework repo), on the MySite repo and pull the Framework repo into MySite that User.php file needs to be overwritten using the file on the Framework repo.
Here is my local git config:
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote "MySite"] url = [email protected]:mysite fetch = +refs/heads/*:refs/remotes/MySite/* gtPrivateKeyPath = /Users/MY_MAC_USER/.ssh/my_key sslVerify = true [branch "master"] remote = MySite merge = refs/heads/master [remote "Framework"] url = username@ domain.com:framework fetch = +refs/heads/*:refs/remotes/Framework/* gtPrivateKeyPath = /Users/MY_MAC_USER/.ssh/my_key sslVerify = true Folder structure for Framework repo:
application/ modules/ User/ User.php public/ images/ themes/ default/ css/ settings.php.sample tmp/ Folder structure for MySite repo
application/ modules/ User/ User.php public/ images/ themes/ default/ css/ MySite_Theme/ css/ settings.php settings.php.sample tmp/ When I pull Framework, it doesn't do anything (unless the files were changed on Framework.
Is it because MySite is the first repo listed?
How can I get Framework to overwrite any files that are in the Framework repo when it get's pulled into MySite?