Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[软技能] 第2071天 git如何回滚到某个commit? #6039

Open
haizhilin2013 opened this issue Dec 15, 2024 · 1 comment
Open

[软技能] 第2071天 git如何回滚到某个commit? #6039

haizhilin2013 opened this issue Dec 15, 2024 · 1 comment
Labels
软技能 软技能

Comments

@haizhilin2013
Copy link
Collaborator

第2071天 git如何回滚到某个commit?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the 软技能 软技能 label Dec 15, 2024
@heiyanquan
Copy link

1、找到那条commit信息的commit-id;
2、git reset --hard commit-id;
3、git push origin HEAD --force
强推到远程。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
软技能 软技能
Projects
None yet
Development

No branches or pull requests

2 participants