且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Git消除了我的变化,我可以让他们回来

更新时间:2023-12-02 15:36:04

如果没有提交,那么没有任何做。虽然,这很奇怪,因为如果你的工作目录中有未提交的数据,git将不允许你切换分支(我不知道github是否适合mac)。

If it wasn't committed, then there's nothing to do. Although, this is weird because normally git won't allow you to switch branch if you have uncommitted data in your working directory (I don't know for github for mac exactly).

您总是可以检查 git reflog 以查看您是否提交了您的数据。

You can always check git reflog to see if you have committed your data.