vscode同步github

  1. 在github上創建對應的Repository。

  2. 利用vscode 創建本地項目

  3. 配置vscode
    在File->preferences中,搜索git.path,若第一次則爲無,添加

"git.path":"D:/soft/git/Git/bin/git.exe"

地址可通過在git CMD中輸入一下命令得到

where git
  1. 將vscode與github進行關聯

將vscode中的終端改爲git,在終端輸入

git init
git remote add origin https://用戶名(郵箱):密碼@github.com/xx(用戶名)/xx(項目).git

,將項目與github進行關聯

關聯成功,後序只需要進行pull和push等,在提交(push)之前需要進行pull

發佈了54 篇原創文章 · 獲贊 5 · 訪問量 3568
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章