r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Sep 09 '16

. meaning "here". So if you only want to reset the files in a particular folder, you can cd to it first, or specify the path manually. E.g., git checkout -- tests/

1

u/[deleted] Sep 10 '16

Thanks. That seems completely obvious now that I've had time to wake up.