我的工作树很少:
$ git worktree list
/home/kes/work/projects/video/app 7509c7f [dev]
/home/kes/work/projects/video/second c12cdf9 [newbr]
当我git checkout newbr
从dev
分支(工作树)做时,我想切换到不同的目录,而不是得到错误:
$ git checkout newbr
fatal: 'newbr' is already checked out at '/home/kes/work/projects/video/second'
目前我做:
cd /home/kes/work/projects/video/second
是否有自动执行此操作的选项?