假设包含.gi的文件夹为vendor/github.com/360EntSecGroup-Skylar/excelize,则可以:
git rm -r --cached vendor/github.com/360EntSecGroup-Skylar/excelize