How can I find out what work is not yet pushed to another repository. In other words; what would I permanently loose if I was to delete that repository?
Currently I use the following 3 lines, but I would like to know if this is a complete cover and if it is a sane approach:
git status --short
git log --branches --not --remotes --simplify-by-decoration --decorate --oneline
git stash list
update: it seems that submodules are not checked. Is there a way to include submodules recursively?