GitHub 使用

Show History

  • 顯示修改內容

Put code to GitHub

GitHub generate a respsitory

Create a new repository on the command line

1
2
3
4
5
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/hot5656/html_demo.git
git push -u origin master

Push an existing repository from the command line

1
2
git remote add origin https://github.com/hot5656/html_demo.git
git push -u origin master

Pull Request(PR)

Setting request

Compare & pull request

Checking merge status

Nwe pull request : 未加入等待 merge
Open : 待 merge
Merged : merge 完成

Complete merge

Check modify

Run merge

參考資料

使用 Pull Request(PR)
GitHub flow
使用 Git Hooks 驗證 local commit 資料