Github での今の自分のやり方の覚書
clone して、issueでbranch
$ git clone https://github.com/guutara/hogehoge.git $ cd hogehoge $ git config --global user.email xxx@xxxx.xx $ git config --global user.name "USERNAME" $ git branch * master $ git branch issuXX $ git branch issuXX * master $ git checkout issuXX Switched to branch 'issuXX' $ git branch * issuXX master $ git push origin issuXX $ git pull origin issuXX
修正作業
$ git add FILE $ git commit -a -m "MESSAGES" $ git push origin issuXX
issue 番号を紐付けておく 1
番号は、Issuesの標題の最後にある、#N
$ git commit --allow-empty -m "resolve #N" $ git push origin issuXX
Pull request と marge
Githubの画面で行う。
marge 後
$ git branch * issuXX master $ git checkout master Switched to branch 'master' Your branch is up-to-date with 'origin/master'. $ git pull $ git branch -d issuXX
-
10-11 追記↩