Git 常用操作

Git
2020-06-03 01:34

branch

  1. 清理无效的 remote 分支 git remote update origin --prune

log

  1. 查看被删除的文件的历史: git log --all --full-history -- "**/thefile.*"

diff

  1. diff 时忽略行尾换行符 git diff --ignore-space-at-eol git diff --ignore-space-change
验证码