When I do git branch
, it returns something like:
~/Dev/project/main (main) $ git branch
bug22
* main
+ feature33
feature19
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'
git log -S "plus sign" -- Documentation/git-branch.txt
turns up the commit hash ID ab3138146f9ce1d819cefab4515965604de76d9d
, and then git describe --contains
tells you v2.23.0-rc0~95^2~1
and Bob's your uncle. It's a cake of pie, er, easy as cake. –
Sloop git log -S
& git describe
. Such a clever way to search for plus sign
–
Miceli © 2022 - 2024 — McMap. All rights reserved.