As in question.
When delete local branch, it show error
<code>
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks branch -d feat/cn/KT3TCT6-6555_import_ma_khach_hang
warning: not deleting branch 'feat/cn/KT3TCT6-6555_import_ma_khach_hang' that is not yet merged to
'refs/remotes/origin/feat/cn/KT3TCT6-6555_import_ma_khach_hang', even though it is merged to HEAD.
error: The branch 'feat/cn/KT3TCT6-6555_import_ma_khach_hang' is not fully merged.
If you are sure you want to delete it, run 'git branch -D feat/cn/KT3TCT6-6555_import_ma_khach_hang'.
</code>
When I run git bash 'git branch -D feat/cn/KT3TCT6-6555_import_ma_khach_hang'
It show error
<code>
fatal: not a git repository (or any of the parent directories): .git
</code>
So how to delete a local branch?
Why should someone care about a branch that he want to delete is fully merged or not?
Hi!
Seems like the real issue is on the second part:
fatal: not a git repository (or any of the parent directories): .git
Have you navigated to the directory in a command shell and run "git status" there? It might be that the .git folder has become corrupted.
Let us know!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.