Norman's Note 諾曼筆記

Norman's Note 諾曼筆記

Git 筆記

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 Cheatsheet 中文網