赞
踩
当前分支切换到某一次提交:
git chekcout <commit_id>
切换到某一次commit提交,并以那次commit提交新建一个分支:
git branch <new-branch-name> <commit_id>
放弃所有代码文件修改:
git checkout .
git reset撤销当前分支所有修改,恢复到最近一次修改前干净的分支情况_zhangphil的博客-CSDN博客git reset撤销当前分支所有修改,恢复到最近一次修改前干净的分支情况,首先:git reset --hard接着:git clean -fdhttps://blog.csdn.net/zhangphil/article/details/90270695git回退代码仓库版本_git回退到之前的版本会影响本地代码嘛_zhangphil的博客-CSDN博客git回退代码版本_git回退到之前的版本会影响本地代码嘛
https://blog.csdn.net/zhangphil/article/details/125624513
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。