GitHub for Mac sync deleted my uncommitted changes

醉酒当歌 提交于 2019-11-30 13:29:16

The Github Desktop creates an stash with your changes.

You can list the stashes with:

git stash list

And apply the one that Github Desktop created by doing:

git stash apply stash@{0}

For more information about git stash see this.

Command line is the way to go. I faced the same situation. When I did a stash list in the Terminal it showed me "GitHub: Stashing to pull in remote changes". And I was able to retrieve my local uncommitted changes back again. :)

VonC

It did happen before (even for GitHub for Windows).

For added changes to the index, a git fsck --full --unreachable --no-reflog could help (as I mentioned here)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!