Wednesday, May 27, 2026

Define initial directory in Git Bash

After installing Git on my new Windows 10 IoT LTSC, as always the default directory of Git Bash is home. It is, however, rather easy to change this behavior.

Right-click the Git Bash shortcut to open its properties, and:

  • Target: remove the --cd-to-home suffix; and
  • Start in: replace %HOMEDRIVE%%HOMEPATH% with whathever folder you want.

No comments: