Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在为我的一个 github 项目做贡献时。我将更改提交到我的 repo 的 master 分支。我错误地从项目的回购中提取了数据。现在,当我从我的 repo 做 PR 时,它也包括这些更改。我不希望发生这种情况,有人可以帮忙吗?
只需重置您的本地主机并将其推回即可。
$ git checkout master $ git reset <last_good_commit> $ git push