mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
Changed checkout -B to set the branch to point at the specified commit rather than always using HEAD
This commit is contained in:
parent
dd58afde76
commit
55ac6da589
1 changed files with 1 additions and 1 deletions
|
@ -645,7 +645,7 @@ var commandConfig = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commandOptions['-B']) {
|
if (commandOptions['-B']) {
|
||||||
args = commandOptions['-B'];
|
args = commandOptions['-B'].concat(generalArgs);
|
||||||
command.twoArgsImpliedHead(args, '-B');
|
command.twoArgsImpliedHead(args, '-B');
|
||||||
|
|
||||||
engine.forceBranch(args[0], args[1]);
|
engine.forceBranch(args[0], args[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue