使用Git / GitHub删除文件 [英] Deleting Files using Git/GitHub

查看:83
本文介绍了使用Git / GitHub删除文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我是Git的新手。



我使用Finder在Mac上本地删除了一堆文件。我希望删除的文件不再显示在当前分支中,但它们确实如此。

任何Git用户都知道更新索引的命令?

解决方案

我认为这将是一种更简单的方式来做你想做的事:

  git add。 -A 

然后您只需要:

  git commit -m删除了一些文件

如上所述。

First off, I'm new to Git.

I deleted a bunch of files locally on my Mac using Finder. I want the files that I deleted to no longer show in the current branch, but they do.

Any Git users know a command to update the index?

解决方案

I think this would be a simpler way to do what you want:

git add . -A 

Then you would just do:

git commit -m "removed some files"

As noted above.

这篇关于使用Git / GitHub删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆