[git-users] How to remove a directory from the index?

2017-10-29 Thread prowat
By mistake I did “git add my_directory”, without adding any files in the directory. When I tried git-adding a file in the directory,, git complains it’s a fatal error: fatal: Pathspec 'modelside/ModelCtrl/Main2.c' is in submodule 'modelside/ModelCtrl' In this message, “ModelCtrl” is the direc

[git-users] Re: How to remove a directory from the index?

2017-10-29 Thread Igor Djordjevic
Hi PeterR, In short, "git submodule" is one git repository (submodule) inside another git repository (superproject). For more info you may check "7.11 Git Tools - Submodules" , gitsubmodules[7] and gi