FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.43k stars 636 forks source link

Connection Lost on Discarding Changes #79

Closed Dalarist closed 11 years ago

Dalarist commented 11 years ago

Upon discarding a change, connection is lost.

Steps to replicate : Use current Chrome version. Add file, allow it to stage. Discard changes Connection is lost.

Error in the dev consol is as follows: Viewport argument key "" not recognized and ignored. localhost/:5 App version: 0.1.5 localhost/:477 Initing bugtracking localhost/:479 Google analytics inited localhost/:498 Failed to load resource http://localhost:8448/api/push Failed to load resource http://localhost:8448/api/fetch Failed to load resource http://localhost:8448/api/remote/tags?path=C%3A%5CUsers%5Czym%5Cgit%5CSIB

i3zhe commented 11 years ago

I am fine with the connection, but I accidentally clicked the "discard all" link... So I am wondering how can I get back? I tried git reset [previous-commit-hash], but not working.

i3zhe commented 11 years ago

Figure it out, See git reflog if you did other things in between. and then git reset HEAD@{n}

For reference: http://stackoverflow.com/questions/16944826/how-to-revert-an-unnecessary-git-reset-head1

ghost commented 11 years ago

events.js:72 throw er; // Unhandled 'error' event ^ Error: ENOENT, stat

child_process.js:927 throw errnoException(process._errno, 'spawn'); ^ Error: spawn EMFILE at errnoException (child_process.js:980:11) at ChildProcess.spawn (child_process.js:927:11) at exports.spawn (child_process.js:715:9) at Object.exports.execFile (child_process.js:607:15) at Object.exports.exec (child_process.js:578:18) at /usr/local/lib/node_modules/ungit/source/git.js:12:31 at Object.q.process as _onImmediate at processImmediate as _immediateCallback

FredrikNoren commented 11 years ago

@Dalarist Hm I think this is the same as #36 , if you look in the ungit command line output you can see exactly what crashed. Closing it as a duplicate for now, if it's something else please re-open.