Git -Tip & Note

Git -Tip & Note git pull 出現 CONFLICT 要回復到 pull 之前 git reset --hard <commit id> 強制 push 取代 remote git push -f 取消 merage (須知道 merage 前的 commit id) git reset --hard <commit id> 拉 remote 的新 branch 到 local(local 不存在該 branch) git checkout --track -b <local new branch> <remote branch> 不小 [Read More]

Git - command

Git - command git status # 查看修改哪些檔案 git diff # 比對修改了的地方與上一個 commit 有何不同 git diff <file> # 比對修改的檔案與上一個 commit 有何不同 git diff <old commit id>..<new commit id> # 比對不同 commit id 的檔 [Read More]