7

I want to run git bash on Windows as an admin, every time I open it.

My OS is Windows 10 Home 64-bit.

A-Tech
  • 806
  • 6
  • 22
Malik Bagwala
  • 2,695
  • 7
  • 23
  • 38

1 Answers1

10

I found this result on Google:

Set up Git Bash to always run as Administrator

  1. Click the Windows Start button and type bash.

  2. Right-click the found link and select Open file location.

  3. Right-click the menu shortcut and select Properties.

  4. On the Compatibility tab select Run this program as administrator.

Elyse Dawson
  • 116
  • 2
  • 5
  • How do you make sure it still opens where you are in directory level and not at root directory level? – sockevalley Oct 08 '22 at 09:19
  • If you want Git to start at a different directory, this question has a lot of great answers https://stackoverflow.com/questions/7671461/how-do-i-change-the-default-location-for-git-bash-on-windows I don't believe there is a way to reopen at the directory you were last in.. – Elyse Dawson Apr 11 '23 at 20:42