akowalz
akowalz

Reputation: 369

Bring back local changes after a checkout

Is there any way to redo changes in the working directory after checking them out? I just ssh'd into a server I hadn't been on in a while and saw that there were unstaged changes in the index. I assumed that this was just scratch work I had done last time, but figured because I didn't commit them they weren't important and ran:

$ git checkout .

to give myself a clean slate. Unfortunately this was a bit hasty, because it turns out that last time I was on this server I just forgot to commit, and the majority of the work I had done was in those changes.

I feel like this is a long shot, but is there any way to bring back these local changes to the working directory?

Upvotes: 2

Views: 87

Answers (1)

VonC
VonC

Reputation: 1329782

Either those changes were:

Upvotes: 1

Related Questions