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 --forceDONE~
git push origin develop:myBranch -f
是把本地的 develop 分支強制(-f)推送到遠端 myBranch git checkout myBranch git reset --hard develop git push origin myBranch --forceFile→Settings→Editor→File Types
Ignore files and folders新增「*.idea」、「*.iml」
Settings → Editor → Code Style → Java → imports
設定 「class count to use import with '*'」值 99 (不能關掉..所以就99)
設定以下順序:
static all other,
blank,
java.*,
blank,
javax.*,
blank,
org.*,
blank,
com.*,
blank,
all other imports
apply~ done~