我让某人向我发送关于团队正在执行的项目的请求请求。但是,在将其合并到工作分支之前,需要进行大量更改。我不确定如何执行此操作,因此我进行了搜索并遇到了this。它显示了如何获取拉取请求并进行更改,评估并随后合并到主请求中。我这样做了,并放在分支e95c037
中。
我做了很多更改,很满意并且准备好将其合并。当我检出master时,我收到一条警告,说您将遗漏大量提交。然后当我遵循最后两个步骤
git add --all
git commit -m "Modified PR"
什么都没发生。我无权访问我的新更改。我尝试签出e95c073
是这样的:
Note: checking out 'e95c037'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at e95c037... Change name
但是我的文件不存在。有新的目录结构(我在修改拉取请求时创建的),但是这些目录中没有文件。
我失去了一切吗?如果我能把所有东西都找回来,该如何合并这个修改后的拉取请求的正确性?