Add a gitignore, make `head` like `get`.
Merge pull request #3 from Machyne/master

Add a gitignore, make `head` consistent with `get`.