A Collection of Less Commonly Used Git Commands

Less commonly used, but very useful git commands

Reinstalling the system caused changes to folder ownership on Windows.

The new version of git has added security checks, prompting an unsafe state and preventing further operation.

git config --global --add safe.directory
git config --global --add safe.directory "*"

New Computer Saving Account Password Information

git config --global credential.helper store

If the saved information needs to be updated, first clear out the old credentials

git config --system --unset credential.helper
Licensed under CC BY-NC-SA 4.0
Last updated on Jun 02, 2025 19:00
A financial IT programmer's tinkering and daily life musings
Built with Hugo
Theme Stack designed by Jimmy