簡體   English   中英

Visual Studio Code 2020 - git 連接和添加項目

[英]Visual Studio Code 2020 - git connection and adding a project

我正在使用視覺工作室代碼。 我有一個本地項目,想添加到 Git 中的新存儲庫。

有人可以共享相同的參考文檔或步驟。

要更新 Repo 連接設置,初始化項目git init並將其添加到 repo

在此處輸入圖像描述

Version: 1.44.2 (user setup)
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T16:36:23.138Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18362

打開終端

如果 Git:

git clone https://${repoUrl}
git status
git add .
git status
git commit -m "added new files to repo"
git push

如果位桶:

git remote add origin https://${repoUrl}
git push -u origin master

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM