When I do git branch
, it returns something like:
~/Dev/project/main (main) $ git branch
bug22
* main
+ feature33
feature19
This is because you're using git worktrees.
*
Whether or not you're using worktrees, *
(always) annotates the current branch you've checked out. +
Annotates the branch that's checked out at your other worktrees. like if I tried checking out feature33
then I would have got the following error:
fatal: 'feature33' is already checked out at '~/Dev/project/features'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.