GitHub上傳專案以及刪除倉庫資料夾等基本操作

2021-09-08 14:09:56 字數 394 閱讀 5405

上傳專案刪除倉庫現有的資料夾

在gitbash裡輸入命令:

git rm --cached -r demo #demo即為需要刪除的資料夾名

git commit -m 「remove directory from remote repository」

git push

提示!

git clean -d -fx指令慎用!!!

因為在以上操作過程中會出些些許問題,當需要通過該指令解決時請將預設路徑下的檔案做好備份。該指令會刪除大量預設路徑下的檔案!!!

向it工作者致敬,後丹之喜碧catbrother歡迎吐槽:

後丹-喜碧catbrother

github 上傳與刪除專案

在github上建立好倉庫後,在本地建立乙個倉庫 git config global user.name you name git config global user.email you email 1.生成金鑰 ssh keygen t rsa c your name 引號裡輸入你的使用者名稱 ...

github上傳專案

echo office automation script readme.md git init 在專案根目錄執行init git add readme.md git commit m first commit git remote add origin git push u origin mast...

GitHub 上傳專案

相關操作指令 1 在github先新建專案acc,然後把路徑名複製起來,路徑名 project 2 在想要上傳的資料夾下右擊 得先安裝上git 選中git bash here 3 git clone project 4 cd acc 5 git add 把需要傳上去的檔案放在acc資料夾下 6 gi...