發表文章

目前顯示的是 3月, 2024的文章

Git

當我開發到一半,但我想先Pull # Stash your changes git stash # Pull the latest changes or do whatever git pull # Apply your stashed changes git stash pop git stash apply 跟 git stash pop 的差異:pop之後會清除stash,如果該stash不會再用到,用pop會簡單點。 要習慣去看git stash list 退回 Commit 不小心commit出去了 # 應該有更溫柔的作法 git reset --hard HEAD^ conflict conflict 的符號解讀 :<<<<<<< patch_1、=======、>>>>>>> patch_2 ======= 的前後分別是兩個 patch 的衝突之處,patch name (我遇到的是branch name,不知有何不同) Pull Request Conflict 照著步驟做,或是在本地合併即可,即使merge了,PR也還會在。 名詞 base branch : 基礎分支,如  main 、 master 、 develop  等。 head branch : 當前分支,被合併的那個。 第一個git筆記 安裝 修改git config配置檔案 How to use GitHub with SSH Keys on Windows 10 【Git教學】 超輕鬆 git config 設定指南 提交  How to push new Git branches to remote repos on GitHub or GitLab by example