Git: Best way to manage multiple working copies of a single repo with third-party remote?

patrickkidd

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!

patrickkidd

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Working with remote repo git

From Dev

Using Git to manage third party developers

From Dev

Best way to extend third party libraries in AngularJs

From Dev

Best way to extend third party libraries in AngularJs

From Dev

The best way to integrate third party library in Android studio

From Dev

Best way to manage multiple Service References in .NET

From Dev

Best way to manage multiple Service References in .NET

From Dev

Preferred way to add a third party library to a git project

From Dev

what third party repo should be use to install git in Redhat 7 in docker?

From Dev

Best way in .NET to manage queue of tasks on a separate (single) thread

From Dev

How to manage clashing third party CSS

From Dev

Best way to store two related projects in the same git repo

From Dev

Best way to share a git repo between home and work PCs?

From Dev

Git clone remote repo into another remote repo

From Dev

What is the best way to work with nested svn working copies in a working copy from the same subversion repository?

From Dev

Best way to manage packages?

From Dev

Git - Removing multiple previous commits from both local and remote repo

From Dev

Phabricator/SVN - What's the best way to manage multiple subdirectories of a repository?

From Dev

What is best way to retrieve cookie/session contents from third party website?

From Dev

Redhat Openshift - Deploying Multiple Applications Based on Single Git Repo

From Dev

git sparseCheckout repo pushes full repo to remote

From Dev

Push git alias to remote repo

From Dev

Git remote repo, not showing the files

From Dev

Failure to push to remote repo in Git

From Dev

feasibility of git without a remote repo

From Dev

Error Pushing to Remote Git Repo

From Dev

Git remote repo, not showing the files

From Dev

feasibility of git without a remote repo

From Dev

Git remote repo no showing in <ul>

Related Related

  1. 1

    Working with remote repo git

  2. 2

    Using Git to manage third party developers

  3. 3

    Best way to extend third party libraries in AngularJs

  4. 4

    Best way to extend third party libraries in AngularJs

  5. 5

    The best way to integrate third party library in Android studio

  6. 6

    Best way to manage multiple Service References in .NET

  7. 7

    Best way to manage multiple Service References in .NET

  8. 8

    Preferred way to add a third party library to a git project

  9. 9

    what third party repo should be use to install git in Redhat 7 in docker?

  10. 10

    Best way in .NET to manage queue of tasks on a separate (single) thread

  11. 11

    How to manage clashing third party CSS

  12. 12

    Best way to store two related projects in the same git repo

  13. 13

    Best way to share a git repo between home and work PCs?

  14. 14

    Git clone remote repo into another remote repo

  15. 15

    What is the best way to work with nested svn working copies in a working copy from the same subversion repository?

  16. 16

    Best way to manage packages?

  17. 17

    Git - Removing multiple previous commits from both local and remote repo

  18. 18

    Phabricator/SVN - What's the best way to manage multiple subdirectories of a repository?

  19. 19

    What is best way to retrieve cookie/session contents from third party website?

  20. 20

    Redhat Openshift - Deploying Multiple Applications Based on Single Git Repo

  21. 21

    git sparseCheckout repo pushes full repo to remote

  22. 22

    Push git alias to remote repo

  23. 23

    Git remote repo, not showing the files

  24. 24

    Failure to push to remote repo in Git

  25. 25

    feasibility of git without a remote repo

  26. 26

    Error Pushing to Remote Git Repo

  27. 27

    Git remote repo, not showing the files

  28. 28

    feasibility of git without a remote repo

  29. 29

    Git remote repo no showing in <ul>

HotTag

Archive