【bug】git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags or

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin
fatal: protocol error: bad line length character: git@

Error reported when using sourceTree to associate projects

Reason for error: I first clone the project from the remote warehouse to the local, then open sourceTree and enter this page through the plus button

insert image description here
Click add, browse the local project folder, click Add
insert image description here
and then report this error when pulling for the first time.
insert image description here
After Baidu found that it was not suitable for me, such as deleting the original certificate or adding a new verification, I tried a lot and it didn’t work.
Then I found out Click on the remote, unable to jump to the remote warehouse

insert image description here

This error will be reported
insert image description here
because my sourceTree has managed several projects, and there is no problem in pushing, pulling, and going to remote warehouses

I began to wonder if sourceTee is not associated with the remote warehouse

I deleted the locally cloned project and created a new folder, such as vue_project

On the sourceTree page, select clone, clone directly from the remote warehouse to the newly created folder
insert image description here
, and then pull, push, jump to the remote warehouse, etc.

Note: When selecting the address of the remote warehouse, there are ssh and http. You need to choose http.
insert image description here
If you choose ssh, it will prompt that it is an invalid source path
insert image description here
. Choose http to clone successfully.
insert image description here

Guess you like

Origin blog.csdn.net/weixin_49668076/article/details/132476812