herrdu / notes

0 stars 0 forks source link

Git 命令:rev-parse #83

Open herrdu opened 3 years ago

herrdu commented 3 years ago
  1. git rev-parse --all 显示所有的 refs 。 image

同样的命令有:git rev-parse --branches,git rev-parse --tags,git rev-parse --remotes

  1. git rev-parse --local-env-vars 列出了本地仓库中的环境变量 image

  2. git rev-parse --path-format=relative 效果未知 image

  3. git rev-parse --git-dir
    image

  4. git rev-parse --git-path uniqueId.js image

  5. git rev-parse --show-toplevel

    /Users/xxxx/Documents/github/lodash/lodash
  6. git rev-parse --git-common-dir 显示 $GIT_COMMON_DIR$GIT_DIR

  7. git rev-parse --show-superproject-working-tree 效果未知

相关文档:

  1. https://git-scm.com/docs/git-rev-parse/en
  2. git rev-parse