我目前正在与git一起构建aosp。我要执行的任务是从本地删除已由其他人推送到远程的提交。
After some heavy Googling I came across git reset --hard HEAD~1
, which I thought did what I wanted it to do after typing git log
and not seeing the commit.
When I went to brunch
the build, it failed, stating that the build at the change wasn't clean.
Noting that I'd completed a build only 30mins prior to this, I know the initial build wasn't the issue.
有适当的方法可以做到这一点吗?