hinzufügen Hier können wir und dev Zweige und ein anderes Projekt mit dem Namen theproject ein Vermögen Projekt mit Master sagen haben., wie Fern einen einzelnen Zweig von einem Repository
Ich möchte remote hinzufügen nur die dev Filiale von Assets Projekt.
Wenn ich wollte das ganze Vermögen Projekt hinzuzufügen ich tun würde:
#Add a new remote URL pointing to the separate project that we're interested in
git remote add -f ASSETS [email protected]/assets.git
#Merge the Assets project into the local Git project
git merge -s ours --no-commit ASSETS/master
#Create a new directory called ASSETS, and copy the Git history of the Assets project into it
git read-tree --prefix=ASSETS/ -u ASSETS/master
#commit the changes to your master branch
git commit -m "Subtree merged in spoon-knife"
git push
Aber wie auch immer das ist nicht das, was ich brauche. Ich dachte etwas wie:
git remote add -f ASSETS --single-branch dev [email protected]/assets.git
Aber wenn es funktionierte würde ich nicht jetzt fragen! Irgendwelche Ideen?