Multiple fixes

fix nil error
fix git reset command
don't need to checkout source branch
Merge pull request #1 from tennety/github_user_pages

Multiple fixes