claude code使用

  ⎿  Initializing…
  ⎿  Error: Failed to create worktree: error: could not lock config file .git/config: File exists
     error: Unable to write upstream branch configuration
     hint:
     hint: After fixing the error cause you may try to fix up
     hint: the remote tracking information by invoking
     hint: "git branch --set-upstream-to=origin/main".

claude code使用过程中出现了这个问题,一般是什么原因引起的啊?有没有大手子教教怎么解决

:thinking:这不是写了是git的问题吗

需要绑定上游分支