I'm working on multiple projects in xcode all are hosted on GIT with each having separte repository and multiple braches. In one of my project it is showing multiple repository. This case occurs while taking pull/push/discard changes.
This is the case. I need to uncheck the other one to pull/push/discard in current project. I've tried checking out new project too. But no success. How can I remove the other project here?
PS: It's only occurring in one of my project while others are working fine.
If you are working on a big project, then it is inevitable that you need to work with multiple repositories. That's why you need to sync your local code base with multiple Git remote repositories.
To combine two separate Git repositories into one, add the repository to merge in as a remote to the repository to merge into. Then, combine their histories by merging while using the --allow-unrelated-histories command line option.
With Git, using multiple repositories is the only way to work efficiently. This enables each team to work independently, and do their work faster. You can also make sure that developers only have access to the repositories they need access to (thus making Git more secure.)
Get changes from the remote repository by choosing Source Control > Pull. In the dialog that appears, select the branch with the changes you want to apply to your local repository, select the “Rebase local changes onto upstream changes” option if you want, and click Pull.
I got stuck into the same issue while working on multiple projects in Xcode. This happens when we add files from another project and therefore the Xcode starts showing repository of other project also. The files are not exactly copied in the new project but only reference is added.
To fix this issue lets assume you have added files from project named "Project-old" to project named "Project-new". And Project-new is showing multiple repositories. Now, do the following steps:
You can rename "Project-old-check" back to "Project-old" now.
Hopefully this will help someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With