I want to check a local branch currently tracking which remote branch
For example:
git checkout -b test_branch
git branch --set-upstream test_branch origin/remote_project001
But after a few days, I forget which remote branch test_branch is tracking.
Is there a command that can give me that information?
This is essentially a duplicate, but to briefly repeat that for your situation, you can do the following:
If you get the error:
… then there is no remote-tracking branch configured to be upstream of your current branch.