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
时间:2017-03-07 17:27:04 作者:zhongxia
创建的Merge Request ,只包含任务B的代码
# 只是删除了commitId之后的commit记录,但是代码改动仍然存在 git reset --soft commitID # 彻底的回到CommitID13:39时候的版本,之后的改动不存在了 git reset --hard commitID
# 1. 查看任务A相关代码commit的id git log # 2. 回退到不包含任务A部分代码的commit 位置 git reset --soft commitid # 3. commit之后的代码,还存在 modified 区域 git rm 任务A的文件 # 4. 提交代码 git commit -am '提交任务B代码,任务B描述' # 5. push 到个人远程仓库分支 git push -f # 6. 搞定
The text was updated successfully, but these errors were encountered:
No branches or pull requests
一、背景
想要的效果
创建的Merge Request ,只包含任务B的代码
二、git 回退知识点
三、具体操作案例
The text was updated successfully, but these errors were encountered: