git remote prune origin 删除本地有但在远程库已经不存在的分支

简介: git remote prune origin 删除本地有但在远程库已经不存在的分支

问题1:

解决git 出现 Your account has been blocked问题

使用git 出现 Your account has been blocked

无法从远程pull代码下来

解决:

$ git push origin master


问题2:

GitLab: Your account has been blocked.

fatal: Could not read from remote repository.:

git 提交时出现以上问题

解决:

$ git remote set-url origin git@git.58haha.com:web/58haha.git


问题3

error: unable to resolve reference refs/remotes/origin/yst/downline: Not a directory

From git.58haha.com:web/58haha

! [new branch]      58haha/downline -> origin/58haha/downline  (unable toupdatelocalref)

error: somelocal refs could not be updated; try running

'git remote prune origin' to remove any old, conflicting branches

解决:

$ git remote prune origin

问题4:

git stash pop后出现冲突

git stash pop后,如果出现冲突的话,不会被drop掉,修改还在

解决:

$ git reset--hard HEAD

相关文章
|
1月前
|
开发工具 git 开发者
|
1月前
|
开发工具 git
|
2月前
|
前端开发 算法 开发工具
Git分支批量清理利器:自定义命令行插件实战
Git分支批量清理利器:自定义命令行插件实战
45 0
|
2月前
|
开发工具 git
Git从远程仓库拉取指定的分支
Git从远程仓库拉取指定的分支
103 0
|
1月前
|
开发工具 git 开发者
|
1月前
|
开发工具 git
|
8天前
|
开发工具 git
完美解决git 执行git push origin master指令 报错command not found
完美解决git 执行git push origin master指令 报错command not found
17 0
|
1月前
|
存储 开发工具 git
Git 术语解析:深入理解上游分支
【2月更文挑战第26天】
89 0
Git 术语解析:深入理解上游分支
|
1月前
|
Shell 开发工具 git
【问题篇】git创建分支后idea切换分支找不到以及合并问题
【问题篇】git创建分支后idea切换分支找不到以及合并问题
30 0
|
1月前
|
开发工具 git
git 新建分支,切换分支,上传到远程分支
在git中,可利用checkout命令转换分支,该命令的作用就是切换分支或恢复工作树文件,语法为“git checkout 分支名”;当参数设置为“-b”时,可以在新分支创建的同时切换分支,语法为“git checkout -b 分支名”。