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?

  • How does merging conflicts in Git compare to merging conflicts in Subversion?
  • Upload maven pom.xml to Git repository?
  • GIT - '~/repo.git/' is not a git command
  • Capistrano 3 runs every command twice (new install) - Configuration issue
  • “git svn clone” only clones trunk? (Expected to clone entire repository)
  • hudson cannot fetch from git repository
  • How do I use GitHub through harsh proxies?
  • Push to remote server while excluding some committed files?
  • How to wrap the bash shell from Github for Windows in Console2?
  • Compare from two different branches in MAGIT
  • Why does GitHub think my code has differences?
  • Hudson+Git clone failure
  • 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.