Accidentally deleted the Git Shell shortcut
Asked Answered
H

2

10

So where is it? I checked the usual suspects, namely Program Files and Program Files (x86), but I didn't see any mention of GitHub there.

Halfslip answered 3/9, 2013 at 5:19 Comment(0)
H
11

I know someone offered an answer but deleted it for whatever reason before I could accept it, so here goes.

You need to create a shortcut to a command, which is actually rather convoluted.

  1. Right-click on the desktop and do New > Shortcut
  2. Browse to any file, but make sure it's not a .exe file!!
  3. Click next through the rest of the wizard and accept the defaults
  4. Now right-click the shortcut, go to Properties > Shortcut tab
  5. Set the Target to: "C:\Documents and Settings\\AppData\Local\GitHub\GitHub.appref-ms" --open-shell
  6. In step 5 above, the quotes are required.
Halfslip answered 3/9, 2013 at 6:8 Comment(2)
If you use a .exe file for step 2, when you get to step 4 you'll notice that there's no Shortcut tab. That confused the crap out of me, but apparently it's a Windows thing. Whatever.Halfslip
on windows 7 i ended up using a target of "%LOCALAPPDATA%\GitHub\GitHub.appref-ms --open-shell"Otterburn
O
3

A better solution is to run

%LOCALAPPDATA%\GitHub\GitHub.appref-ms --reinstall-shortcuts

which will recreate the shortcut on the desktop.

Octangular answered 25/10, 2016 at 22:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.