We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Commit
git reset --hard [commit_id]
注意:回退后导致当前master指向的提交,落后于远程库的提交。 理论上这种情况下,Git是禁止推送到远程分支的,那么需要添加参数--force来强制提交。 这样会导致在此提交后面的提交记录会丢失,所以一定要慎用该参数
master
Git
--force
git push origin develop --force
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Commit
注意:回退后导致当前
master
指向的提交,落后于远程库的提交。理论上这种情况下,
Git
是禁止推送到远程分支的,那么需要添加参数--force
来强制提交。这样会导致在此提交后面的提交记录会丢失,所以一定要慎用该参数
The text was updated successfully, but these errors were encountered: