Git/branch
Jump to navigation
Jump to search
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
Information:
git branchlists local branchesgit branch -rlists the remote branchesgit branch -alists both local and remote branches
Actions:
git branch <name>creates a new branch called "name", pointing at the current HEAD revisiongit checkout <name>moves HEAD to point to the branch called "name"