gpt4 book ai didi

git - 告诉 git 可以删除未跟踪的文件

转载 作者:IT王子 更新时间:2023-10-29 00:40:38 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How do you remove untracked files from your git working copy?

是否可以告诉 git 删除未跟踪的文件?主要是类似于重置的东西?

例子:

git checkout -- index.php <-- revert my file
git checkout -- master <-- this would revert the entire repo back to the last commit on master, removing (deleting) any and all untracked files as well as reverting committed ones.

我知道这在 shell 上很简单。但我想知道这是否可以在 Git 中完成?

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