2024年2月1日筆記
主要教學內容 : vercel , 如何把github連結本地端
在github中找到網址
step1
找到你要的專案step2
點選最上排的<>Codestep3
點選綠色的<>Codestep4
把https 選項下的網址複製下來就可以了~把存在github上的資料下載到本地端
終端機
step1
$git clone <網址>
#下載到本地端step2
$ ls
<檔案名稱>vscode終端機 (要開新終端機)
step1
$git remote
<跑出網址名稱>step2
$git remote get-url <跑出網址名稱>
<網址>
#得到該網址step3
$git remote remove <跑出網址名稱>
#刪掉原網址step4
$git remote remove <網址名稱>
#刪掉原網址step5
$git remote add origin https://github.com/fhsh-tong3/VitePress_project1.git
#加入本端機和github連結step6
git push --set-upstream origin main
#主要是用於將本地的修改推送到遠端的數據庫,同時設置本地分支與遠端分支的連接,使它們建立追蹤關係*補充:如何確認網址是否還存在
$git remote
#確認是否有沒有把原網址刪掉