[GIT] git vs新專案推送到GitHUB

  • 289
  • 0
  • GIT
  • 2019-12-25

git 新專案推送到GitHUB

預設模式在 cmd 環境底下

1. 切換到   專案資料夾  假設為:     D:\mepowerlmaygit\WebTinHauTempleContactInfo

2.初始化儲存庫
git init

3.建立版本
git add .
git commit -m "Initial commit"


4.推送對應遠端網址
git remote add origin https://github.com/mepowerlmay/WebTinHauTempleContactInfo.git
git push -u origin master

推送時候應該會要求,輸入帳號&密碼

最後應該會推送完成

以上文章僅用紀錄資料使用.....