I noticed the names “master” and “origin” being used a lot in git. What’s the difference between these, and are either standard in git, or are they just common practice? Which would be the root folder of the repository?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
masteris the default branch that is created in Git when you create a repo. It is pretty standard, but you may have a repo without master branch. You can delete or rename it, but it is generally not advised.originis the remote from which you clone from and is set up by git. It is also pretty standard, but you may delete it or rename it or add a remote origin without cloning.Note that all repos created in git come with master. But only cloned ones come with origin.