Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

git - fatal: unknown value for config 'protocol.version': 2

I decided to turn on Git protocol 2nd ver (I suppose it's faster, noiseless), so I did:

git config --global protocol.version 2

But when I try

git pull

I get an error saying:

fatal: unknown value for config 'protocol.version': 2

My OS is Ubuntu 18.04. My friend on Ubuntu 16.04 did the same and it worked for him. Am I maybe missing some dependencies?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This feature appeared in Git 2.18

To try out protocol version 2 for yourself you'll need an up to date version of Git (support for v2 was recently merged to Git's master branch and is expected to be part of Git 2.18) and a v2 enabled server (repositories on googlesource.com and Cloud Source Repositories are v2 enabled).

And I have Git 2.17v


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...