![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git 遇到的问题
孟秋没Bug
记录工作中遇到的问题,如有疑问, 欢迎讨论!
展开
-
怎么改git commit message
如何修改 git commit message 提交信息原创 2023-03-13 17:45:56 · 541 阅读 · 0 评论 -
【git问题】couldn‘t find remote ref
使用 git pull 遇到错误 “Couldn’t find remote ref xxx” 是怎么解决?原创 2023-03-01 16:30:04 · 8360 阅读 · 0 评论 -
git 修改远程分支名
修改本地分支名git branch -m oldName newName 删除远程旧分支git push --delete origin oldName上传本地新分支git push origin newName 把远程分支和本地分支做关联git branch --set-upstream-to origin newName原创 2021-07-01 16:16:59 · 76 阅读 · 0 评论 -
标题在错误的分支上拉新分支写代码,并且已经提交,如何把提交的代码搬到另一个分支上
标题在错误的分支上拉新分支写代码,并且已经提交,如何把提交的代码搬到另一个分支上?例如:本来是要基于develop分支建立新分支test的,但是基于master分支建立的test并且写了代码提交,此时要重新基于develop分支建立一个test-new并且有test的代码提交解决方法:切到原分支查看commit的版本号git checkout testgit log复制提交代码前的commit版本并reset(提交的代码会回到工作区)git reset 版本号把回到工作区的代原创 2021-07-01 14:32:12 · 124 阅读 · 0 评论