how do i get the remote branch and update the local git link for this branch without executing the current branch? For example, if I do this
$ git pull origin master
origin / master merges into my current branch. This also does not work.
$ git fetch origin master
How then do I check
$ git branch -r -v origin/HEAD -> origin/master origin/master 7cf6ec5 test 02
that origin / master ref "7cf6ec5 test 02" is lagging. The true origin / master is "XXXXXX test 03". git fetch only pulled the changes to FETCH_HEAD, it did not load the local origin / master ref. What is the step to update this ref?
Note:
$ git fetch origin
Get all deleted links and update them, but unfortunately (a) a lot of mess. (I donβt want someone else 30-50 random branches to know that someone will not want mine) and (b) when the branches are deleted by origin, these links are not deleted locally the next time I do git fetch origin , which means this path ends abruptly.
The question is, how to extract only one branch and update its ref locally?
git
gman
source share