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.
我使用以下命令删除了一个远程 Git 分支(和本地远程跟踪分支):
git push origin --delete <branch_name>
如何撤消此操作?
推送最后知道该分支的本地版本:
git push -f origin last_known_good_commit:branch_name