0

I've tried one command line: pbcopy < git remote get-url origin

And other way: output.txt < git remote get-url origin

But I get 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).

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
devshok
  • 737
  • 1
  • 8
  • 19

1 Answers1

3

If you want to redirect output to file output.txt it would be: git remote get-url origin > output.txt

For clipboard do: git remote get-url origin | pbcopy

Mateusz Chrzaszcz
  • 1,240
  • 14
  • 32