Let me preface this by saying that I am relatively new to git so I might have difficulty correctly expressing my situation.
I was doing some work on a project and I wanted to commit the changes I had made. I proceeded to run through the next few commands:
git add .
git commit -m "Finished user signup"
此时此刻,它似乎处理我的承诺,处理所有变化、插入和删除。 我接着说:
git checkout master
It successfully switched to the master branch. I thought I had been in a branch at the time and I tried merging it, but that didn t work so I just moved forward. I pushed and everything was up to date. Then I made some quick changes to other files and tried:
git commit -am "Add SSL in production"
它取得了成功。 然而,在我上次承诺之前所作的所有改动现在都已停止,我真的希望尽可能回头来。 我现在认识到,也许我需要退步,实际上要服从于《伊斯兰堡宣言》,而不是仅仅通过辅导一米之后的步骤,但我真的会热心尽可能在这个基础上找到一个ulli。 如果你有任何想法,我如何能够把我的档案整理回来,我可以真正利用你的帮助。
Edit: I tried looking at the log with "git log" and it doesn t show any sign of the commit I want to recover...