有解决”fatal: protocol ‘?[200~https’ is not supported”的函数吗?

huangapple go评论62阅读模式
英文:

Is there a function to solve the fatal: protocol '?[200~https' is not supported

问题

当我使用git推送我的代码库时,会出现这个问题:致命错误:协议'?https'不受支持

这不是双引号错误或Ctrl + V错误,我希望有位英雄能帮我将我的代码库推送到远程库。谢谢你。

英文:

When i use the git to push my repository it will pop this problem fatal: protocol '?[200~https' is not supported

It's not the double quote error and ctrl + v error, i hope some hero can help me to push my repository to the remote one. Thank you

答案1

得分: 0

?[200~ 是来自 "方括号粘贴" 的遗留物。你可以放心删除这部分,但请确保检查 git remote -v 中的 URL 的其余部分是否正确。 (如果需要修复它,git remote set-url origin $CORRECT_URL 应该能解决。)

你没有提到你的操作系统或窗口管理器/桌面环境,但其中大多数都有特定的键组合用于 "普通粘贴"。你也可以在终端配置或 .bashrc/.zshrc/等文件中指定一些内容来禁用方括号粘贴。

英文:

?[200~ is an artifact from "bracketed pasting". You should be safe to remove that part, but be sure to check that the rest of the URL in git remote -v is correct. (If you need to fix it, git remote set-url origin $CORRECT_URL should do the trick.)

You didn't mention your operating system or window manager/desktop environment, but most of those will have a specific key combination for "plain pasting". You may also be able to specify something in your terminal config or .bashrc/.zshrc/etc file to disable bracketed paste.

huangapple
  • 本文由 发表于 2023年4月11日 16:05:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/75983701.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定