【发布时间】:2017-11-09 23:19:52
【问题描述】:
所以我将 ouath key file 从本地副本推送到我的 git 分支。如何覆盖 git 中的提交以删除 oauth key file?
我试过了
git rm cache /storage/oauth.key 并执行了 git add、git commit、git push 到我的分支,但文件仍然存在。
我也试过了
git revert commitID 但出现错误
error: commit 5ac87ad863059396jkljkljlkjce4c64 is a merge but no -m option was given.
fatal: revert failed
请指教。
【问题讨论】: