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
git checkout --orphan latest_branch
git add -A
git commit -m "..."
git branch -D master
git branch -m master
git push -f origin master
原文
The text was updated successfully, but these errors were encountered:
No branches or pull requests
新建orphan分支
git checkout --orphan latest_branch
将需要的文件添加到暂存区
git add -A
Commit
git commit -m "..."
删除master分支
git branch -D master
将当前latest_branch分支重命名为master分支
git branch -m master
最后,推送到远程仓库
git push -f origin master
原文
The text was updated successfully, but these errors were encountered: