wrc's wiki

Home

❯

Tweak

❯

git

git

Sep 10, 20211 min read

  • command-line

例子

使用 git diff 的格式比较不在仓库中的文件 1

git diff --no-index -- A B

还可加 git diff 的其他选项(如指定 context 行数等等)

fetch all history after cloning with --depth=1 2

git pull --unshallow

Footnotes

  1. https://stackoverflow.com/a/17433969/10974106 ↩

  2. https://stackoverflow.com/a/29270131/10974106 ↩


Graph View

  • 例子
  • 使用 git diff 的格式比较不在仓库中的文件
  • fetch all history after cloning with --depth=1

Created with Quartz v4.5.1 © 2025