mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #263 from Yitsushi/bug/180-does-not-check-out-branch-if-it-already-exists
fix #180 and #232 feature|bug|refactor checkout.
This commit is contained in:
commit
daf0c0c048
|
|
@ -11,4 +11,5 @@ else
|
|||
fi
|
||||
branch=bug/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
test -n $? && git checkout $branch &> /dev/null
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -11,4 +11,5 @@ else
|
|||
fi
|
||||
branch=feature/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
test -n $? && git checkout $branch &> /dev/null
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -12,4 +12,5 @@ else
|
|||
fi
|
||||
branch=refactor/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
test -n $? && git checkout $branch &> /dev/null
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue