I want to click a hotkey and copy the URL for the repo version of the particular line of code I am on to my clipboard (so I can share it with people).
Open the terminal and run git remote -v . Click Source Control on the left panel, and then click ... , select Pull from or Push to , and you will see the remotes and the urls on top center.
Cloning a repository# You can search for and clone a repository from GitHub using the Git: Clone command in the Command Palette (Ctrl+Shift+P) or by using the Clone Repository button in the Source Control view (available when you have no folder open).
The extension Gitlens by Eric Amodio gives the Copy Remote URL
option in the context menu.
The command is: gitlens.copyRemoteFileUrlToClipboard
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With