开发者

How to remove git ignored files from GitX Staged area

开发者 https://www.devze.com 2023-02-10 00:22 出处:网络
I removed some files from git index , using git rm --cached. Those files were already staged before. Now those files still shows at the GitX stage area, with red icon near them.

I removed some files from git index , using git rm --cached.

Those files were already staged before.

Now those files still shows at the GitX stage area, with red icon near them.

I would like them disappear, that's the reason I ignored开发者_如何学运维 them.

I tried git update-index --assume-unchanged to no avail.

Any advice ?


From GitX manual:

A red icon indicates a file that has been deleted.

Meaning your git rm --cached did modify the staging area shown by GitX, marking those files to be deleted from the cache (and not the working tree) on the next commit.
All you need to do for them to actually disappear the GUI (from the staging area or "staged Changes" part of GitX) is to commit them.

0

精彩评论

暂无评论...
验证码 换一张
取 消