Search code examples
gitversion-controltortoisegit

TortoiseGit clone option is unavailable in right-click context menu


I have installed Git 2.5.2 64-bit and TortoiseGit 1.8.16.0 64-bit onto my Windows 7 64 bit computer. I would like to clone a repository but when I right click in windows explorer, I am not seeing an option to clone a repo:

context menu image

I have gone to TortoiseGit -> Settings -> General -> Context Menu and made sure that the Clone option is checked:

tortoise git settings menu

I am able to clone a repo using git:

git clone [email protected]:Group/repo.git myrepo

I can also get TortoiseGit's clone dialog to open via command line:

TortoiseGitProc.exe /command:clone

but I can't seem to get it to work with TortoiseGit's shell integration.

Does anyone know why the clone option is not showing up?


Solution

    1. "Hide Menus for unversioned paths" is selected, so no TortoiseGit menu is shown for paths where no git working tree could be found (you need to press shift there)

    2. Within a working tree (in a non-ignored folder) no clone is available in the context menu. However, with newer versions (IIRC >= 2.2) also for versioned folders the Git clone entry can be shown by pressing Shift while opening the context menu.


    If you want to clone a checked out repository, navigate to a clean new directory, right-click and you will see the clone command in the context menu where you can, then, select the path of the repository you want to clone.