Cjku/git: Difference between revisions

Line 448: Line 448:
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 "origin" as default put all branches into ref/remote/heads/origin namespace. There is no special-power for "origin", it just a default choice.
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 "origin" as default put all branches into ref/remote/heads/origin namespace. There is no special-power for "origin", it just a default choice.


Here are terms when we talk about remote:
Here are roles when we play around with remote:
* Remote repository: the repository you cloned from.
* Remote repository: the repository you cloned from.
* Remote: short name of URL, or, alias name of URL
* Remote: short name of URL, or, alias name of URL
Confirmed users
1,643

edits