Git 筆記

若公司內部沒有使用 https,使用以下指令關閉 sslVerify。
git config --global http.sslVerify false
在 windows os 若要更換 Git 的帳密時,依照以下流程刪除原本的帳密,再重新 Push 後,Git 就會要求你重新輸入帳密。
控制台 ->  使用者帳戶 -> 認證管理員 -> Windows認證
更換 Push 的 Repository
git remote set-url origin https://1.1.1.1/project.git
git push origin
設定 Proxy,於 User 資料夾底下的 .gitconfig 加入以下設定。
[http "https://github.com"]
    proxy = 10.10.10.10:1010
其他
  • 強制 Push,不建議使用,會覆蓋其他人的修改。
    git push -f
    
  • 分支只是一張貼紙,貼在某一個 Commit。
  • 合併通常是指合併 Commit。

results matching ""

    No results matching ""