Confirmed users
1,643
edits
(→clone) |
|||
Line 446: | Line 446: | ||
-o, --origin <name> use <name> instead of 'origin' to track upstream | -o, --origin <name> use <name> instead of 'origin' to track upstream | ||
The git-clone command creates a new git repository based on the original you specify. The branches under refs/heads namespace in original repository become branches under refs/remote/heads namespace in the new created repository. If you do not specify origin in git-clone operation, git use " | The git-clone command creates a new git repository based on the original you specify. The branches under refs/heads namespace in original repository become branches under refs/remote/heads namespace in the new created repository. If you do not specify origin in git-clone operation, git use "ref/remote/heads/origin" as default namespace to keep remote-tracking branches. There is no special-power for "origin", it just a default choice. | ||
Here are roles when we play around with remote: | Here are roles when we play around with remote: |