Git 筆記
看檔案的歷史改動
可以 VSCode 按右鍵選 View File History
Private git ignore
Put your private ignore rules in .git/info/exclude
https://stackoverflow.com/questions/6117109/is-it-possible-to-have-a-custom-gitignore-read-only-access
清除 Untracked files
g clean -d -n
: 列出(模擬)指令執行後會刪除的檔案g clean -d -f
: 刪除 Untracked files
- Reflog
http://scars377.github.io/git-cheatsheet-cht/
https://github.com/amio/git-cheatsheet-chs
- 刪除遠端分支:
$ git push origin :cat
https://gitbook.tw/chapters/github/delete-remote-branch.html