wolfgang ziegler


„make stuff and blog about it“

4 snips use the tag Git

Linux Git January 19, 2021

Ignore modified files due to changes in file permissions.

git config core.fileMode false
Git January 7, 2021

Revert single files that you just *committed.

git checkout HEAD~1 -- <path1> <path2>

Git Linux January 4, 2021

From time to time I clean up all the local branches that have assembled over time in a Git repository.

git branch | grep -v "master" | xargs git branch -D

Git January 2, 2021

Clear your git credentials (e.g. after a password change).

git config --unset user.password