I am working on my project and I was pushing and committing after every change. It so happened that I used devise gem on my project and it got me errors but I sorted it out after that I got a name error stating that I don't have a user model.
The thing is I can't generate or scaffold the user model due to the devise gem name uninitialized constant error. Now I was wondering if there is any way I could get my code back from git hub. The code that I pushed before I added the device gem, then I add the user controller to it.