When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file:
1 $ rm .git/refs/heads/origin/branch-name
When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file:
1 $ rm .git/refs/heads/origin/branch-name