Github Workflow - davious/MotherOfAllGitDevSessions GitHub Wiki

Setup

  • Clone ncarb repository into your personal github account through github website
  • Clone your github clone to your computer
  • change configuration to track ncarb
  • add a remote to your github repository
# clone through website, then
git clone https://github.com/myusername/Repo.git
git remote add upstream https://github.com/ncarb/Repo.git
git remote set-url --push upstream https://github.com/myusername/Repo.git
git fetch upstream
git branch -u upstream/master

Typical Workflow

git checkout -b feature upstream/master
git add .
git commit -m "done"
git push upstream feature
hub pull-request "#2342 Feature Name" -h feature

(That -h:feature feels redundant; this is planned to be fixed)

Maintainer Workflow

Setup

See Pulley page for a patch to access git over https

git remote add upstream https://github.com/ncarb/Repo.git

Workflow

pulley 8