I have few work trees:
$ git worktree list
/home/kes/work/projects/video/app 7509c7f [dev]
/home/kes/work/projects/video/second c12cdf9 [newbr]
I want to be switched to different directory, when I do git checkout newbr from dev branch (worktree), instead of get error:
$ git checkout newbr
fatal: 'newbr' is already checked out at '/home/kes/work/projects/video/second'
Currently I do:
cd /home/kes/work/projects/video/second
Is there an option to do this automatically?