Generally, I am trying to figure out how to sync my changes to a third-party lib across multiple arch builds for that lib.
Specifically, I am managing four clones of the main Qt git repo (as in with a remote on qt.io), one for each lib architecture I build for my app. For example, I have separate qt release builds for iOS, iPhoneSimulator, macOS, windows and one debug build for development.
The problem is that I am modifying the qt source code and want to sync and test these changes across all of my working copies, while still being able to push to the main Qt repo on qt.io.
How do I set this up with git? Do I need to setup my own bare repo as a second remote or something? How does this work?
Thanks!
Turns out you can pull branches from one working copy to another by setting a remote in to /.git which is actually a bare repo. I suppose you learn something every day. Say you have two qt builds, one for iOS and one for OS X, and you have a branch of commits in the iOS copy you want to pull to the OS X copy:
cd qt-ios
git checkout -b some-branch
git commit -a -m "made changes"
cd qt-osx
git remote add qt-ios ../qt-ios/.git
git pull qt-ios some-branch
that's it. Then theoretically you could do the same in the other direction.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments