在你的
Git
在 GitHub Guide 中我們有提供解釋
GitHub 會自動發佈你放在 'gh-pages'
http://githubusername.github.io/repositoryname
當你新增
在終端機輸入 git status
可以知道目前你在哪個
新增一個
$ git branch <BRANCHNAME>
水啦!你擁有了一個全新、內容跟 'gh-pages' 一模一樣的
就像終端機去另一個資料夾的指令 cd
一樣,請
$ git checkout <BRANCHNAME>
接下來我們回到文字編輯器:
按照以下的步驟,把剛才的修改用 Git 記錄下來:
$ git status
$ git add <FILENAME>
$ git commit -m "<commit message>"
$ git push origin <BRANCHNAME>
git-it verify
git-it
git-it verify
的時候沒有通過?剛才新增的檔案應該要放到 Patchwork git status
看你剛才移動檔案之後所造成的結果。用以下的指令
$ git add -A
$ git commit -m "move file into contributors folder"
$ git branch -M <NEWBRANCHNAME>
完成以上的動作之後,再執行一次 git-it verify
!
$ git checkout -b <BRANCHNAME>
$ git branch <BRANCHNAME>
$ git checkout <BRANCHNAME>
$ git branch
$ git branch -m <NEWBRANCHNAME>
$ git status