Github for Windows is a ClickOnce installer, and as a user you can't control the ClickOnce installer's target folder. Instead they will always be installed into the "ClickOnce application cache", which is %USERPROFILE%\AppData\Local\Apps\2.0
.
ClickOnce applications are always installed in the Apps subdirectory of local application data.
Source
ClickOnce Deployment will install an application in the user Application Cache per user (not in X:\Programe files\folder) and will be managed by the ClickOnce service. There is no way you can install it to another folder directly using ClickOnce. This means you cannot change the ClickOnce installation location.
Source
Nope. You can't. One of the design goals of ClickOnce applications is that they require no administrative privileges, and the only places you can write with impunity on Vista and Windows Fabulous (7) are under the user's profile.
Source
The philosophy behind ClickOnce is a bit different to normal programs installed in "C:\Program Files". By installing the application in the user's directory, the application can be installed without having admin rights and the automatic updating system can work without having any awful security issues.
Source
C:\Users\User\AppData\Local\GitHub`,
C:\Users\User\AppData\Local\Apps\2.0\YYZRRD9X.HWG\RVTJXJ3M.LBH\github.exe_317444273a93ac29_0003.0000_none_a7edba33c398fcf9`,C:\Users\User\AppData\Local\Apps\2.0\YYZRRD9X.HWG\RVTJXJ3M.LBH\gith..tion_317444273a93ac29_0003.0000_12384c781d7f8ad4