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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -