idea 拉取分支git pull报错 The branch to pull from should be selected

The branch to pull from should be selected

1、问题描述

  • idea 拉取分支git pull报错 The branch to pull from should be selected

2、解决:修改git配置文件中fetch

本地仓库目录下 git配置文件config 中修改fetch

bash 复制代码
fetch = +refs/heads/*:refs/remotes/origin/*

3、idea拉取origin最新分支

  • 先 git fetch 获取 远程仓库最新分支信息
  • 再 git pull 拉取 远程仓库最新的分支(origin中其他分支)
相关推荐
奶茶树20 分钟前
【C++】13. C++11新特性【上】
c语言·开发语言·c++·git·github
卓怡学长4 小时前
w192基于springboot教务管理系统
java·数据库·spring boot·spring·maven·intellij-idea
夏至春来-美美15 小时前
git clone报错
git
拂拉氏15 小时前
【Linux】 开发工具(Makefile、git、cgdb)解析与对于操作系统的基础认识
linux·git·操作系统·makefile·cgdb
EXI-小洲20 小时前
MacOS 环境下 IntelliJ IDEA 的 Maven 配置指南
macos·maven·intellij-idea
番茄不是西红柿kk1 天前
deepseek-harness跨平台桌面端二开项目(附git仓库地址+安装包)
git·agent·codex·deepseek·deepseekharness
leoZ2311 天前
10-Git 仓库蒸馏术:从代码仓库到 OpenClaw 虚拟人-蒸馏工具链
大数据·git·深度学习·神经网络·目标检测·elasticsearch·lstm
fpcc2 天前
工具使用—git diff命令分析说明
git·工具
console.log('npc')2 天前
Git 删除指定提交记录操作指南
git
随风丶飘2 天前
[特殊字符] 告别“update“和“fix bug“——Smart Git Commit LLM 让 AI 帮你写专业的 Git 提交信息
人工智能·git·bug