我打算git reset - hard到我做的最后一次提交但是我之前意外地回到了提交。无论如何要撤消这个。
这是一系列事件: 我从一个普通的仓库中撤出并进行了一些更改并提交了它们(SHA1)。我做了更多更改并提交了它们(SHA2)。然后我做了一些更改但从未提交过它我只是想回到SHA2。相反,我重置为SHA1。现在,我所有的改变都丢失了。我可以撤消上一次重置并转到SHA2吗?
我的意思是当我做一个git日志时:
//filePath would be the Path of the .EXE file that was found
string filePath = "\"C:\\Programme\\Steam\\Steam.exe\"";
string autostartPath = @"Software\Microsoft\Windows\CurrentVersion\Run\";
RegistryKey autostart = Registry.CurrentUser.OpenSubKey(autostartPath, true);
autostart.SetValue("Steam", filePath);
我重置为SHA1而不是SHA2。我可以撤消我的重置 - 硬件