合集-git+项目管理

摘要:迁移本地git到远程, 可以保留提交记录, 但是没有分支,这个可以自己下载分支code,再提交所有分支到new git。 //或者保留 所有diff 或者commit 文件 参考 https://blog.csdn.net/github_38336924/article/details/118544 阅读全文
posted @ 2023-11-04 15:45 scott_h 阅读(225) 评论(0) 推荐(0)
摘要://1.回滚到上一次版本 git reset --hard HEAD^ //2. 同步到远程 master,使之 生效 git push -f https://www.runoob.com/git/git-reset.html $ git reset HEAD^ # 回退所有内容到上一个版本 $ g 阅读全文
posted @ 2023-11-07 15:16 scott_h 阅读(114) 评论(0) 推荐(0)