Is “master” a standard branch name in git, or is it just the standard practice?

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?

  • git commit -a on Mac hangs when TextMate is quitted
  • Git Server Denying Access
  • Unable to merge fork of repo
  • git incorrectly tags a file as rename
  • Do I need to fork a repository multiple times to make multiple pull requests?
  • What is the right git workflow with shared feature branches?
  • git: disable automatic pushing to a certain remote branch
  • How can I sign each (even old) commit in the repository?
  • Git keeping separate branches in sync
  • How to “unversion” a file in either svn and/or git
  • git-checkout older revision of a binary file without overwiting the working copy
  • How to prevent git commit if specific phrase in changes is detected?
  • One Solution collect form web for “Is “master” a standard branch name in git, or is it just the standard practice?”

    master is 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.

    origin is 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.

    Git Baby is a git and github fan, let's start git clone.