Upgrade to Pro — share decks privately, control downloads, hide ads and more …

hub + git

hub + git

Command line github and pr-checklit

Oursky Limited

May 12, 2015
Tweet

More Decks by Oursky Limited

Other Decks in Programming

Transcript

  1. hub • https://github.com/github/hub • git + hub = cli github

    • OS X -> brew install hub • aliased as git -> eval "$(hub alias -s)"
  2. Short hand • hub clone oursky/ourd • vs git clone

    [email protected]:oursky/ourd.git • hub remote add -p rickmak • git remote add rickmak [email protected]:rickmak/ourd.git
  3. github command • hub am https://github.com/oursky/formflow/pull/ 81 • No need

    to add remote, yay • hub fork • hub browse (open browser)
  4. Pull-request • hub pull-request -m "Implemented feature X" -b oursky:master

    -h limouren:feature • hub pull-request -F checklist.md -b oursky:master -h chpapa:wishes
  5. Auto append checklist • https://github.com/rickmak/github-pr-checklist • Visit https://blooming- castle-7985.herokuapp.com/api/listenpr? repo=rickmak/waffle

    • cat PR.md | curl --data-binary @- -X PATCH https://blooming-castle-7985.herokuapp.com/ api/listenpr?repo=rickmak/waffle
  6. Don’t merge at web • Seriously open source project don’t

    use it • git inventor https://github.com/torvalds/linux/pull/17#issuecomment-5654674 • joyent/node, npm/npm, jquery(https://twitter.com/gnarf/status/378211055932936192) • “Merge pull request” Considered Harmful (http://blog.spreedly.com/2014/06/24/merge-pull- request-considered-harmful/#.VUxpy87QBo0) • You need to pull it to your environment to verify it • Give the merge a meaningful message