![](/img/trans.png)
[英]I've accidently pushed to a git repo with the wrong user account. How can I undo it or change the user?
[英]Accidentally committed with wrong account. How do I undo?
所以我嘗試了撤消提交的常用方法,但沒有奏效。 在網站上,我在 GitHub 上登錄了一個不同的帳戶,當我在命令行中時,我進行了更改並提交。 接下來我知道,它在 GitHub 網站上說我的另一個帳戶進行了更改。 我該如何解決?
謝謝
解決了! 我只是通過更改名稱來修復我的用戶信息,然后在搞砸之前硬重置到最后一次提交。 然后刪除文件,重新添加,並提交!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.