-
在github上創建對應的Repository。
-
利用vscode 創建本地項目
-
配置vscode
在File->preferences中,搜索git.path,若第一次則爲無,添加
"git.path":"D:/soft/git/Git/bin/git.exe"
地址可通過在git CMD中輸入一下命令得到
where git
- 將vscode與github進行關聯
將vscode中的終端改爲git,在終端輸入
git init
git remote add origin https://用戶名(郵箱):密碼@github.com/xx(用戶名)/xx(項目).git
,將項目與github進行關聯
關聯成功,後序只需要進行pull和push等,在提交(push)之前需要進行pull。