I would like to get a list of files which are committed but not yet pushed. I tried git diff --name-only
but this shows only the files which are changed but not yet committed. Once these file's are committed this commando does not work.
Any suggestions?