GitHub 是一個(gè)共享虛擬主機(jī)服務(wù)(英語:Shared web hosting service),用于存放使用Git版本控制的軟件代碼和內(nèi)容項(xiàng)目。
GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers.
個(gè)人主頁
通過訪問 http://[用戶名].github.io/ 查看個(gè)人主頁。
只需在GitHub上建立一個(gè)[用戶名].github.com的項(xiàng)目,然后把項(xiàng)目的代碼通過Git推送到項(xiàng)目中。 首次建立項(xiàng)目需要等待十分鐘左右才能訪問,以后更新內(nèi)容都可立即刷新訪問。
項(xiàng)目演示
通過訪問 http://[用戶名].github.io/[項(xiàng)目名]/ 查看項(xiàng)目演示
在gh-pages分支上創(chuàng)建你的項(xiàng)目,然后把項(xiàng)目的代碼通過Git推送到項(xiàng)目中。首次建立項(xiàng)目需要等待十分鐘左右才能訪問,以后更新內(nèi)容都可立即刷新訪問。
常用命令
git clone git@github.com:[用戶名]/[項(xiàng)目名].git 本地目錄
git status
git add
git commit * -m '提交內(nèi)容注釋'
git pull
git push origin [分支名]
【幫助】
如何高效利用GitHub