Add test to reproduce the error caused by (no branch).
Fix test: return error when the current branch check out to a commit.
Merge pull request #33 from shaoshing/no-branch

Fix error when getting the current branch but it is checked out to a commit
adds .idea folder (of JetBrains IDEs) to gitignore
prepublish script uses coffee installation of dev dependencies instead of global installation
REPO#pull includes also stdout in Error.message, if an error occurrs,

because the stderr isn't telling anything, if a merge-conflict arises. Then the vital information is listed in stdout.
makes gift installable with npm via a git url

* adds the coffee compile command as the postinstall script in package.json
* disadvantages:
 - now it needs coffee-script as dependency (was devDependency)
 - also the src folder must not be ignored via .npmignore