#!/bin/sh
#
# git-restage - 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
