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

相关文章
|
11天前
|
开发工具 git
Git教程:深入了解删除分支的命令
【4月更文挑战第3天】
83 0
Git教程:深入了解删除分支的命令
|
9天前
|
JSON 开发工具 git
git rebase 合并当前分支的多个commit记录
git rebase 合并当前分支的多个commit记录
|
11天前
|
开发工具 git
git 如何删除本地和远程分支
git 如何删除本地和远程分支
28 0
|
11天前
|
Shell 开发工具 git
git获取gitee老版本的分支内容
git获取gitee老版本的分支内容
11 0
|
11天前
|
网络安全 数据安全/隐私保护
解决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
|
11天前
|
开发工具 git 开发者
【专栏】探讨了 Git 中的 `git rebase` 操作,它用于重新应用提交到另一分支,改变历史顺序
【4月更文挑战第29天】本文探讨了 Git 中的 `git rebase` 操作,它用于重新应用提交到另一分支,改变历史顺序。与 `git merge` 不同,rebase 重写提交历史,提供简洁线性的历史记录。文章介绍了 rebase 的基本操作、应用场景,如整理提交历史、解决冲突和整合分支,并强调了使用注意事项,如避免在公共分支上操作。尽管 rebase 可以带来整洁的历史和冲突解决便利,但其潜在的风险和可能导致的历史混乱需谨慎对待。理解并恰当使用 `git rebase` 可以提升开发效率和代码质量。
|
11天前
|
机器人 Java 测试技术
云效产品使用常见问题之流水线git自定义某一个分支提交节点失败如何解决
云效作为一款全面覆盖研发全生命周期管理的云端效能平台,致力于帮助企业实现高效协同、敏捷研发和持续交付。本合集收集整理了用户在使用云效过程中遇到的常见问题,问题涉及项目创建与管理、需求规划与迭代、代码托管与版本控制、自动化测试、持续集成与发布等方面。
|
11天前
|
开发工具 git
完美解决git 执行git push origin master指令 报错command not found
完美解决git 执行git push origin master指令 报错command not found
33 0
|
11天前
|
存储 项目管理 开发工具
如何使用 Git Clean 清理 Git 存储库?
【4月更文挑战第9天】
128 9
如何使用 Git Clean 清理 Git 存储库?
|
11天前
|
开发工具 git
git如何创建新分支,GitHub默认分支是main怎么连上
git如何创建新分支,GitHub默认分支是main怎么连上
24 0

相关实验场景

更多