简体   繁体   中英

How to remove git ignored files from GitX Staged area

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM