日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

Linux gitpush错误,linux – GIT:无法推送(奇怪的配置问题)

發布時間:2023/12/13 linux 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux gitpush错误,linux – GIT:无法推送(奇怪的配置问题) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我正在全新安裝

Linux Mint.

嘗試從任何存儲庫推送時,我收到以下錯誤:

error: Malformed value for push.default: simple

error: Must be one of nothing,matching,tracking or current.

fatal: bad config file line 8 in /home/leng/.gitconfig

fatal: Could not read from remote repository.

這很奇怪,因為我肯定有一個支持簡單推送行為的版本.

git –version的輸出是git版本1.8.3.2.

?/ .gitconfig的內容:

[user]

name = My Name

email = MyEmail@website.com

[color]

ui = true

[push]

default = simple

這是令人毛骨悚然的地方.

如果我將行為更改為匹配(或任何,跟蹤或當前,為此),然后嘗試推送,我得到相同的確切錯誤消息.怎么可能?是以某種方式緩存配置?我甚至試過重啟.我甚至嘗試從系統中徹底清除GIT(并刪除?/ .gitconfig)然后重新安裝它.

如果我從.gitconfig文件中完全刪除[push]部分(或者如果我完全刪除文件),那么嘗試推送,然后我得到:

Git 2.0 from 'matching' to 'simple'. To squelch this message

and maintain the current behavior after the default changes,use:

git config --global push.default matching

To squelch this message and adopt the new behavior now,use:

git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.

(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode

'current' instead of 'simple' if you sometimes use older versions of Git)

error: Malformed value for push.default: simple

error: Must be one of nothing,tracking or current.

fatal: bad config file line 8 in /home/leng/.gitconfig

fatal: Could not read from remote repository.

…所以它似乎都承認我沒有選擇推動行為,但后來也說我選擇了一種不受支持的行為.到底是怎么回事?

如果我完全刪除?/ .gitconfig,我甚至會收到錯誤.

有誰可以幫我解決這個巫術?

謝謝!

編輯:

這是一個請求的.git / config文件:

[core]

repositoryformatversion = 0

filemode = true

bare = false

logallrefupdates = true

[remote "origin"]

url = ssh://{my remote repo}

fetch = +refs/heads/*:refs/remotes/origin/*

[branch "master"]

remote = origin

merge = refs/heads/master

總結

以上是生活随笔為你收集整理的Linux gitpush错误,linux – GIT:无法推送(奇怪的配置问题)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。