gpt4 book ai didi

git - -- 在 git 用法中是什么意思?

转载 作者:太空狗 更新时间:2023-10-29 13:33:23 27 4
gpt4 key购买 nike

<分区>

删除一个文件可以:

git rm path/to/file

当我想在 git 中取消暂存已删除的文件时,我必须:

  • git reset --path/to/file
  • git checkout -- path/to/file

我不太明白为什么 -- 是必需的以及命令与以下命令有何不同:

  • git reset path/to/file
  • git checkout path/to/file

其他的是后者不起作用。

-- 背后的基本原理是什么?

fatal error 状态:

Use '--' to separate paths from revisions

但我还是不太明白其中的区别。

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com