Git Structure:
1. Local repo:
(1) main
(2) test_branch
2. Remote repo:
(1) main
(2) test_branch
For some reasons, some contents in test_branch in the local repo are messed up, so I want to pull the test_branch in the remote repo to the test_branch in the local repo to recover the original structure.
Tried:
git checkout test_branch
git pull origin test_branch
But it didn't work.
Also dig other threads :
Git: How do I force "git pull" to overwrite local files?
Tried:
git fetch --all
git branch backup-test_branch
git reset --hard origin/test_branch
But it also didn't work.
Any suggestions are appreciated.