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
Git项目管理——分支(三)
Git项目管理——分支(三)
24 2
|
2月前
|
JSON 开发工具 git
git rebase 合并当前分支的多个commit记录
git rebase 合并当前分支的多个commit记录
|
26天前
|
存储 开发工具 git
解决“hint: the same ref. If you want to integrate the remote changes, usehint: ‘git pull‘ before pus”
解决“hint: the same ref. If you want to integrate the remote changes, usehint: ‘git pull‘ before pus”
|
1月前
|
开发工具 git
git切换到另一分支更改也会随之过去
git切换到另一分支更改也会随之过去
22 1
|
1月前
|
开发工具 git
git将一个远程分支的部分修改提交到另一个远程分支
git将一个远程分支的部分修改提交到另一个远程分支
13 1
|
24天前
|
敏捷开发 测试技术 持续交付
【git分支管理策略】如何高效的管理好代码版本
【git分支管理策略】如何高效的管理好代码版本
55 0
|
2月前
|
开发工具 git
Git 保姆级教程(二):Git 分支
Git 保姆级教程(二):Git 分支
|
2月前
|
开发工具 git
git 如何删除本地和远程分支
git 如何删除本地和远程分支
95 0
|
2月前
|
Shell 开发工具 git
git获取gitee老版本的分支内容
git获取gitee老版本的分支内容
17 0
|
2月前
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
105 0