Skip to content

Instantly share code, notes, and snippets.

@theking2
Created April 18, 2024 13:14
Show Gist options
  • Save theking2/d4b86ec3735d9a93ef998f1fd121d89a to your computer and use it in GitHub Desktop.
Save theking2/d4b86ec3735d9a93ef998f1fd121d89a to your computer and use it in GitHub Desktop.
Clone here
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\git-clone]
@="Clone here"
[HKEY_CLASSES_ROOT\Directory\shell\git-clone\command]
@="Powershell -NoProfile -Command \"Set-Location -LiteralPath '%V' ; git clone $(Get-Clipboard)\""
@theking2
Copy link
Author

Install

To install: add to registry
Make sure to have certificate to logon to the git server of your choice

Usage

Copy a clone string. (click on the big green Code button and select SSH and select Copy url to clipboard
Right click a folder and select Clone here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment