本地創建了一個項目,需要上傳到github中
? ? ?1).本地先創建一個空的項目
? ? ?2).在github中也創建一個一模一樣的項目
? ? 點擊-》頭像左邊的加號"+"-》
? ? 點擊-》New repository
? ?填寫項目名稱需要跟本地的名稱一致
? ?填寫項目描述
? ? 兩個選項
? ? public 公開的 √
? ? ?private 私有的
? ? 點擊-》Create repository
? ?推薦每個項目都有這三個文件
? ? README 說明文檔 √
? ? LICENSE 開源許可證
? ?.gitignore 忽略 √
?在本地項目中創建README文件
?需要在項目目錄中執行以下代碼
?git init
?git add README.txt
?git commit -m "first commit"
? git remote add origin https://github.com/itwenqiang/demo.git
? ?git push -u origin master
?提示輸入用戶名(***最好輸入主郵箱)
?提示輸入密碼(***linux中輸入密碼看不到)
?上傳萬能三步 ?可以上傳個人作品哦
(1) git add 文件
?(2)git commit -m "備注"
?(3) git push
? git add . 添加所有
?git add --all 刪除文件的時候使用
?玩git hub 一定要 學會問
?git status
?github中已有的項目,下載到本地
?點擊-》Clone or downloaded
?把鏈接復制下來
?git clone 鏈接
?開發之前拉取最新
?git pull
?工作流程
?git pull
?操作
?git add
?git commit -m "備注"
?git push
?創建個人站
?項目名必須:
?用戶名.github.com
點擊 settings
點擊 Launch automatic page generator
點擊 Continue to layouts
選擇你喜歡的模板
點擊 Publish page
.gitignore
忽略文件上傳