We can recover files, which were once added (but not committed) and later removed using git reset --hard. See Recovering added file after doing git reset --hard HEAD^
When we push in our changes to some upstream repository, Are these blobs also pushed in?
Context: While doing any development, I occasionally do a git add on files changed, but don't commit them. This one time, I did a git add with some critical api credentials, and I was wondering if they could be recovered from the logs if I were to ever open-source the repo/gem.