GitHub for Mac sync deleted my uncommitted changes

后端 未结 3 689
离开以前
离开以前 2021-01-02 10:36

I use GitHub for Mac version 210 on Mac OS X 10.10. Hitting the \"sync\" button deleted my uncommitted changes. Is that supposed to happen from time to time? I\'ve never had

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 11: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.

提交回复
热议问题