>git push -u origin master
this is a line that I enter to finish up to upload a file that I worked in github.
but the question is, what are they??? origin and master?
origin
"origin" is a shorthand name for the remote repository that a project was originally cloned from.
More precisely, IT IS USED INSTEAD OF THAT ORIGINAL REPOSITORY'S URL -and thereby makes referencing much easier.
so it is a shorthand name of the git URL. simple.
master
"master" is a naming convention for a branch. After cloning(downloading) a project from a remote server, the resulting local repository has a single local branch : the so-called "master" branch. This means that "master" CAN BE SEEN AS A REPOSITORY'S "DEFAULT" BRANCH.
default branch when just cloned. simple!
references : https://www.git-tower.com/learn/git/glossary
this is a line that I enter to finish up to upload a file that I worked in github.
but the question is, what are they??? origin and master?
origin
"origin" is a shorthand name for the remote repository that a project was originally cloned from.
More precisely, IT IS USED INSTEAD OF THAT ORIGINAL REPOSITORY'S URL -and thereby makes referencing much easier.
so it is a shorthand name of the git URL. simple.
master
"master" is a naming convention for a branch. After cloning(downloading) a project from a remote server, the resulting local repository has a single local branch : the so-called "master" branch. This means that "master" CAN BE SEEN AS A REPOSITORY'S "DEFAULT" BRANCH.
default branch when just cloned. simple!
references : https://www.git-tower.com/learn/git/glossary
댓글
댓글 쓰기