Skip to main content.

2006-Oct-17

Realized a "git" commit I did a month ago never really got committed to source. It was only committed in my own tree but not pushed to origin.

To fix this:

First make sure correct repo is used:

$ head -1 .git/remotes/origin
For example use git+ssh:// protocol to be able to "push". Then list the changes in your HEAD not yet in the "origin":
$ git-rev-list origin..HEAD
This will give a hash which can be shown with "git-show". (It will show log message and the diff itself.)

Push upstream with:

git push origin