使用Git工具上傳本地專案到Github
- 打開想要上傳到Github倉庫的本地作業目錄,點擊滑鼠右鍵選擇Git Bash Here.
- 本地作業目錄初始化,專案空間創建.git檔案,系統默認設定隱藏該檔案,
- 將專案增加到暫存區(Stage/Index),
- 提交至本地倉庫(Repository),
- 本地倉庫關聯github遠程倉庫,
- 代碼合并,
git init
git add .
git commit -m "本次專案提交描述資訊"
git remote add origin git@github.com:xxxxxx.git
git pull --rebase origin main
git push -u origin main
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/254767.html
標籤:其他
上一篇:JDK卸載與安裝
