Using Eclipse (EGit) how do I see/review commits that haven't been pushed to origin yet?
This is what the history looks like:
We can view the unpushed git commits using the git command. It will display all the commits that are made locally but not pushed to the remote git repository.
Select a file or directory in the Editing page, and choose Git Log in the Actions menu. This will show all commits in your current local branch that involve changes to the chosen file or directory.
RightMouse on that commit and "reset -> Hard" (will reset all your commits AND local workspace changes to the selected commit). you should see the up-arrow changing into an down-arrow, meaning that your commits are deleted and that your repository is outdated.
Go to Window
->Show View
->Other
->GIT
->Git Reflog
There you'll see the commits that both have been pushed and those that aren't pushed, but wont differentiate between them.
Better is to use the Egit equivalent of Gitk:
Right click on the Project choose Team
->Show in history
. For each commit you'll se which branches that commit is available on. If it only says <tree-name>
and not origin/<tree-name>
it means that it isn't pushed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With