git hitting an error :- error: cannot delete branch 'main' used by worktree at 'C:/work/python/langchain-tool'

While trying to delete my main branch i ran into this error. There are many possible solution. One of them could be this


cd "C:/work/python/langchain-tool"

git worktree list # see the work tree 

git switch master   # or any other branch

Then try to remove it

git branch -d main





    


Comments

Popular posts from this blog

mongosh install properly

gemini cli getting file not defined error

vllm : Failed to infer device type