2022年8月31日

[Git]git 一個分支完全替換另一個分支

git push origin develop:myBranch -f 是把本地的 develop 分支強制(-f)推送到遠端 myBranch

但如果想要本地端先處理好 再推上去 (比較心安感?)步驟如下:

1. 切到要被蓋掉的分支
git checkout myBranch
2.將本地的舊分支 myBranch重設成 develop
git reset --hard develop
3.強置推出去
git push origin myBranch --force
DONE~

2022年5月28日

[IntelliJ IDEA]隱藏.idea資料夾和.iml等檔案

 File→Settings→Editor→File Types

 Ignore files and folders新增「*.idea」、「*.iml」