gpt4 book ai didi

Git:如何提交手动删除的文件?

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

<分区>

在我的 git 存储库中,我在将文件 (rm) 移动到另一个文件夹后手动删除了它。我不是将所有更改提交到我的存储库,但现在当我执行 git status .

ronnie@ronnie:/home/github/Vimfiles/Vim$ git status .
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: plugin/dwm.vim
#
no changes added to commit (use "git add" and/or "git commit -a")

现在,我应该如何提交以便从我的远程仓库中的插件文件夹中删除 dwm.vim。我知道我必须使用 git add && git commit 但我没有要提交/添加的文件,因为 /plugin/dwm.vim 已被删除。

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