顯示具有 Git 標籤的文章。 顯示所有文章
顯示具有 Git 標籤的文章。 顯示所有文章

2026年3月18日 星期三

Git github上修改專案名稱+本機端修改

1.先修改github上專案名稱
a.到專案中
b.點選settings
c.Repository name輸入新名稱
d.Rename
2.本機端修改有兩種方式
2-1.將所有的內容push後從網頁端重新建立(時間較長)
2-2.在 VS Code 中打開 終端機 (Terminal)
輸入以下指令來檢查目前的遠端設定
git remote -v
使用以下指令更新 URL(請將 新網址 替換為你在 GitHub 上看到的新 HTTPS 或 SSH 連結)
git remote set-url origin <您的新專案網址.git>

2025年7月9日 星期三

Git make sure you configure your 'user.name' and 'user.email' in git

VS Code Commit時出現的錯誤
make sure you configure your 'user.name' and 'user.email' in git
開啟終端機輸入以下指令
git config --global user.name "你git上面的名稱"
git config --global user.email 你git註冊的mail

2025年4月1日 星期二

Git npm : 因為這個系統上已停用指令碼執行,所以無法載入

1.開啟PowerShell
2.執行
get-executionpolicy
3.如為Restricted執行
set-executionpolicy remotesigned
4.如有例外改執行
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
參考資料
VSCode 執行 npm install 失敗