You can use your remote-tracking branches and their reflog to see what changes you have pushed. For example, if you pushed code to origin/master
, you can list all the files that you changed with the following:
git diff origin/master@{1} origin/master --name-status
The syntax basically says to take the difference between origin/master@{1}
, i.e. origin/master
at its 1st previous position, and the current state of origin/master
, as last known by your local repo.