A small cross‑platform helper that clones all repositories into your preferred folder. Set it once, then use a single command to clone into that folder every time.
- Set a default folder for all Git repositories
- Works on Windows (PowerShell) and Linux/macOS (bash/zsh)
- Provides
gcloneandglococonvenience commands - Provides
gdcmenu with ASCII UI and docs shortcut - Persists across terminal sessions
git clone https://github.com/terminalskid/git-directory-changer.git
cd git-directory-changer
.\install.ps1
Enter a default folder when prompted (e.g. D:\GitRepos). The installer places wrappers in %USERPROFILE%\.gitloc\bin and adds that directory to PATH.
git clone https://github.com/terminalskid/git-directory-changer.git
cd git-directory-changer
bash install.sh
Enter a default folder when prompted (default ~/GitRepos). The installer places wrappers in ~/.gitloc/bin and appends that directory to PATH in your shell rc file.
- Clone into the default folder:
gclone https://github.com/username/repo.git
- Show the current default folder:
gloco
- Set or change the default folder:
git-loc set /path/to/folder
- Reset configuration:
git-loc reset
- Launch the ASCII menu:
gdc
- Open docs directly:
git-loc docs
- Requires Python. The installers detect
python3/pythonon Unix andpy/pythonon Windows. - Commands become available in new shells after installation; the installer also updates PATH for the current session.