git-fetch manual page says:
git fetch remote_repo will update "remote-tracking branches" of all branches from the remote repository.
What if I only need fetch a single remote branch?
I try to run:
git fetch remote_repo remote_branch It just stores infomation into FETCH_HEAD instead of creating a "remote-tracking branch" named remote_repo/remote_branch.
I know there is a solution:
git fetch remote_repo remote_branch:refs/remotes/remote_repo/remote_branch But it's too verbose.
Is there a simpler way to achieve this?