Skip to content

git-update-ref

安全地更新存储在引用中的对象名称。

概要

bash
git update-ref [-m <reason>] [--no-deref] <ref> <newvalue> [<oldvalue>]
git update-ref --stdin [-z]

描述

安全地更新存储在引用中的对象名称。

选项

  • -m <reason>:记录更改原因。
  • --no-deref:不解引用符号引用。
  • --stdin:从标准输入读取更新。
  • -z:使用 NUL 分隔符。

Git

git 套件的一部分

基于 CC BY-NC-SA 3.0 许可发布