git - Is it possible to copy remote origin url to clipboard using Bash on Mac (Darwin 17)? -
i've tried 1 command line: pbcopy < git remote get-url origin
and other way: output.txt < git remote get-url origin
but next message:
-bash: git: no such file or directory
any ways?
p.s. git version: 2.13.3, os version: macos high sierra (darwin 17).
if want redirect output file output.txt
be: git remote get-url origin > output.txt
for clipboard do: git remote get-url origin | pbcopy
Comments
Post a Comment