#!/bin/bash

git reset HEAD -- "$@"
git checkout HEAD -- "$@"

#!/bin/bash

args="."

if [ -n "$@" ]; then
	args="@"
fi

git reset HEAD -- "$args"
git checkout HEAD -- "$args"

Remove git changes from working dir if no args specified
Remove git changes from working dir if no args specified
