I'm a newbie to programming, having just taken AP computer science, and not experienced with Github. I was asked to make a github, so I made one and synced all my changes there. I made a few changes, then tried to sync them. I opened github, and clicked sync, but it said I had uncommited changes, so it told me to delete them, so I did, then synced, and all my work was lost, as the old version was downloaded.
I'm guessing I can't undo this, but I'm still optimistic, is there some way to recover it?
This is kind of unrelated but: I have .jars of my newest work, but when I decompile them with jdgui, the for each loops get messed up. I'm also guessing its not possible for a compiler to read for each loops, but again I'm optimistic, is there some way to decomiple them cleanly with for each loops?