I have 2 local branches named origin/QAD-1649 and QAD-1649, and a remote branch with same name QAD-1649. I want to delete the local branch named origin/QAD-1649 without deleting the remote branch so that I can continue working on the local branch QAD-1649 which should track remote branch origin/QAD-1649.
The local branch QAD-1649 currently tracks some another branch origin/compare which is in forked main project repository. I am trying to update it to origin/QAD-1649 in my main project repository. How can I achieve this without losing my remote branch QAD-1649?