Difference between revisions of "Git/branch"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
Jump to navigation Jump to search
(commands)
m (proper sorting for categories)
Line 1: Line 1:
[[category:git/concepts]]
+
[[category:git/concepts|branch]]
[[category:git/commands]]
+
[[category:git/commands|branch]]
 
A "branch" is a separate copy (of the files involved in a project) which can be worked on without affecting the original copy.
 
A "branch" is a separate copy (of the files involved in a project) which can be worked on without affecting the original copy.
  

Revision as of 21:10, 9 March 2015

A "branch" is a separate copy (of the files involved in a project) which can be worked on without affecting the original copy.

"Branching" is a concept basic to most version control systems.

Commands

To find out what branches are available:

  • git branch lists local branches
  • git branch -r lists the remote branches
  • git branch -a lists both local and remote branches

Links

Reference