author | Linus Torvalds <torvalds@g5.osdl.org> | |
Tue, 12 Jul 2005 04:30:23 +0000 (21:30 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Tue, 12 Jul 2005 04:30:23 +0000 (21:30 -0700) | ||
commit | 37f1a519f2ea0ce912ccd7c623aea992147c3900 | |
tree | fd17678d983e39cce1093e011c04ed9cf35dde21 | tree | snapshot |
parent | 91dcdfd3b5331d955cfb60edf8930f1b5c142905 | commit | diff |
Add "git branch" script
You can use it as
git branch <branchname> [start-point]
and it creates a new branch of name <branchname>. If a starting point
is specified, that will be where the branch is created, otherwise it
will be created at the current HEAD.
The sequence
git branch xyz abc
git checkout xyz
can also be written as
git checkout -b xyz abc
as per the previous commit.
You can use it as
git branch <branchname> [start-point]
and it creates a new branch of name <branchname>. If a starting point
is specified, that will be where the branch is created, otherwise it
will be created at the current HEAD.
The sequence
git branch xyz abc
git checkout xyz
can also be written as
git checkout -b xyz abc
as per the previous commit.
Makefile | diff | blob | history | |
git-branch-script | [new file with mode: 0755] | blob |