I'm working in a branch that is remote tracking. I've made several commits.
Is there any way to get a list of the commits I've made that I have NOT pushed yet? Is there any way to get a list of the commits that I haven't pulled yet?
I'm working in a branch that is remote tracking. I've made several commits.
Is there any way to get a list of the commits I've made that I have NOT pushed yet? Is there any way to get a list of the commits that I haven't pulled yet?
You can see a list of commits you have not yet pushed by running
git log origin/master..master
optionally swapping in some other branch name for origin/master
and master
(e.g., origin/mybranch
and mybranch
).
Something along the lines of
git diff master origin/master
might work. But that will give you way more info than just the commit list, so you probably need to use different options.
Edit: But you probably need to run
git fetch
first