mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-14 01:06:23 -04:00
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
|
||
|---|---|---|
| .. | ||
| git-forgit | ||