Skip to content

Instantly share code, notes, and snippets.

@gitolicious
Created March 10, 2018 12:24
Show Gist options
  • Save gitolicious/102117629bb89423fa0a1a4a3c0c5f48 to your computer and use it in GitHub Desktop.
Save gitolicious/102117629bb89423fa0a1a4a3c0c5f48 to your computer and use it in GitHub Desktop.
Add a Windows Explorer context menu entry "Git Clone Clipboard" to git clone the repo address currently in your clipboard (insert your git path)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_clone]
@="Git &Clone Clipboard"
"Icon"="\"%GIT%\\mingw64\\share\\git\\git-for-windows.ico\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_clone\command]
@="\"%GIT%\\git-bash.exe\" \"--cd=%v.\" -c \"echo --- Cloning $(cat /dev/clipboard) --- ; git clone $(cat /dev/clipboard) ; echo --- Press Enter to close --- ; read\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment