首先要保證下載git客戶端爽室,下載地址為:https://git-scm.com/download/win
一另玖,使用注意
1.上傳時注意
使用Git客戶端再次提交的時候斜纪,需要先更新服務器上的變化溺忧,然后才能提交句葵,也就是先更新再提交
二,連接webstorm
1.選擇file->setting:
2.ws中VCS 選擇【import into Version control】-->【Create Git Repository...】-->選擇要上傳的項目
3.右擊項目(或要上傳的文件夾/文件)【git-->add】
4.提交
- 4.1【git-->commit directory】提交添加的文件
- 4.2【Commit Message】添加提交描述
-
4.3【Commit】提交
5.【pull】操作:提交之后,右擊項目变丧,選中【git-->repository-->push】
6. 復制碼云上的HTTPS開頭的路徑,點擊Define remote(定義遠程)
7.【git-->pull】:①點擊刷新 ②origin/master
8. 進入項目目錄【GitBush】【pull/push失敗執(zhí)行】:git pull origin master --allow-unrelated-histories
9. 進入項目目錄【GitBush】【pull/push失敗執(zhí)行】:git pull origin master --allow-unrelated-histories
學習時的記錄,共同交流