#!/bin/bash

args="."

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

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

#!/bin/bash

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

--- 
+++ 
@@ -1,10 +1,4 @@
 #!/bin/bash
 
-args="."
-
-if [ -n "$@" ]; then
-	args="@"
-fi
-
-git reset HEAD -- "$args"
-git checkout HEAD -- "$args"
+git reset HEAD -- "$@"
+git checkout HEAD -- "$@"
Remove git changes from working dir if no args specified
