Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git without Admin rights, Windows 10?

Our corporate PCs have git installed which always tries to gain admin access on any git command, Even git --version. This is weird that git is designed that way that it need admin access for any git command.

We have Beyond trust privilege management which keep tracks of any application which tries to take admin access, this process takes a very long time to verify and because of this git works very very slow in all PCs.

Eclipse has its own integrated git which works fast as it doesn't take admin rights to do operations.

Is there a way we can run git without admin rights in Windows 10?

like image 397
topgun Avatar asked Sep 18 '25 19:09

topgun


2 Answers

Git can also be installed without admin privilege.

Use the --scope user switch with winget.

winget install --id Git.Git -e --source winget --scope user
like image 63
user20921238 Avatar answered Sep 20 '25 12:09

user20921238


I installed Git without admin rights using the Windows Setup from https://git-scm.com/download/win

However, I changed the install location from Program Files to:

C:\Users\<ME>\AppData\Local\Programs\git

I also unchecked the shell integration and file associations, though I do not know if this makes any difference.

I was not asked to elevate during the install.

like image 39
B. Leduc Avatar answered Sep 20 '25 13:09

B. Leduc