dotfiles/.local/bin/scripts/git-recache
2021-01-23 19:55:22 +01:00

6 lines
198 B
Bash
Executable file

#!/bin/sh
# Untracks and adds back all files (or the given path)
# Useful to remove tracked files after adding them to the gitignore
git rm --cached --quiet -r ${1:-.}
git add ${1:-.}
git status -s