ggpull tweak to update the current branch's remote tracking branch #582
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed if I used ggpull on my branch 'dev', my remote tracking branch 'origin/dev' was not getting updated, even though my 'dev' branch was. Here's a symptom of the problem shown by example. I'll update my dev branch pulling down 5 commits, then switch away and back to my branch.
Now I'm actually in sync with my github dev branch, but git is telling me that I'm ahead of origin/dev by 5 commits. This would make me think that I had 5 commits I hadn't pushed out to github, but this isn't true - it's rather that ggpull updated my "dev" branch but didn't update my remote tracking branch "origin/dev".
My fix is to use git fetch to update the remote tracking branch in addition to the pull.