Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试过一个命令行: pbcopy < git remote get-url origin
pbcopy < git remote get-url origin
和其他方式: output.txt < git remote get-url origin
output.txt < git remote get-url origin
但我收到下一条消息:
-bash: git: 没有这样的文件或目录
无论如何?
PS Git 版本:2.13.3,操作系统版本:macOS High Sierra (Darwin 17)。
如果要将输出重定向到文件output.txt,它将是: git remote get-url origin > output.txt
output.txt
git remote get-url origin > output.txt
对于剪贴板,请执行以下操作: git remote get-url origin | pbcopy
git remote get-url origin | pbcopy