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中其他分支)
相关推荐
AIMath~4 小时前
Git 子模块(Submodule)目录结构清除实战复盘
git
切糕师学AI4 小时前
Ubuntu 下 Git 完全使用指南
linux·git·ubuntu
一袋米扛几楼986 小时前
【Git】规范化协作:详解 GitHub 工作流中的 Issue、Branch 与 Pull Request 最佳实践
前端·git·github·issue
尘埃落定wf7 小时前
# GitHub CLI:告别繁琐的 Git 命令,让开发更高效
git·github
恋喵大鲤鱼7 小时前
git clone
git·git clone
lifewange8 小时前
Pycharm和IDEA中安装Cursor的方法
ide·pycharm·intellij-idea
金牛IT9 小时前
Gogs 轻量级 Git 服务器搭建与使用
运维·服务器·git
Qres82119 小时前
Git安装记录
git
wj30558537821 小时前
Codex + Git 开发环境配置指南(WSL版)
linux·运维·git
misL NITL1 天前
idea、mybatis报错Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required
tomcat·intellij-idea·mybatis