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?

  • Nested git repositories?
  • Git diff on topic branch, excluding merge commits that happened in the meantime?
  • How do you reverse the relationship between a git repository and its clone?
  • Git error: Malformed input or input contains unmappable chacraters
  • Git committed file but it's not in the repo
  • What does caret bang (^!) after the commit hash do when calling git diff?
  • How does Mercurial stack up against GIT and SVN?
  • Is there a clean way to handle two original git repositories that started with the same content?
  • use hooks in git to import and export to cvs
  • pushing a git repo fails with error: contains '.git'
  • Chef git cookbook: how to fix permission denied while cloning private repo?
  • Git merge submodule into parent tree cleanly and preserving commit history
  • 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.