博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git 添加新分支后可能报错及解决方案
阅读量:5111 次
发布时间:2019-06-13

本文共 963 字,大约阅读时间需要 3 分钟。

报错信息:

You asked me to pull without telling me which branch you

want to merge with, and 'branch.v1.0.0.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull ').
See git-pull(1) for details.

If you often merge with the same branch, you may want to

use something like the following in your configuration file:

[branch "v1.0.0"]
remote = <nickname>
merge = <remote-ref>
 
[remote "<nickname>"]
url = <url>
fetch = <refspec>

See git-config(1) for details.

解决方案

修改.git/config文件

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = yourgitrepo
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
email = yourname@yourcompany.com
name = yourname
[branch "v1.0.0"]
remote = origin
merge = refs/heads/v1.0.0

转载于:https://www.cnblogs.com/wujuan/p/4037386.html

你可能感兴趣的文章
JS 中的跨域请求
查看>>
JAVA开发环境搭建
查看>>
mysql基础语句
查看>>
Oracle中的rownum不能使用大于>的问题
查看>>
cassandra vs mongo (1)存储引擎
查看>>
Visual Studio基于CMake配置opencv1.0.0、opencv2.2
查看>>
遍历Map对象
查看>>
MySQL索引背后的数据结构及算法原理
查看>>
#Leetcode# 209. Minimum Size Subarray Sum
查看>>
SDN第四次作业
查看>>
DM8168 DVRRDK软件框架研究
查看>>
django迁移数据库错误
查看>>
yii 跳转页面
查看>>
洛谷 1449——后缀表达式(线性数据结构)
查看>>
Data truncation: Out of range value for column 'Quality' at row 1
查看>>
Dirichlet分布深入理解
查看>>
(转)Android之发送短信的两种方式
查看>>
字符串处理
查看>>
HtmlUnitDriver 网页内容动态抓取
查看>>
ad logon hour
查看>>