Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkout_branch: support "-" argument (#322)
git natively supports `-` as an argument to `git switch` and `git checkout`. It is shorthand for `@{-1}`, which is a way to refer to the last branch you were on. forgit used to interpret `-` as a branch name, detect that it does not exist yet and create a new one with this name, which does not work. Add a check whether `-` is passed on the command line and do not create a new branch in this case
- Loading branch information