Error in git
When I tried to git add, I got the following error
$ git add . -A warning: adding embedded git repository: server/uketuke/jquery.ripples hint: You've added another git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to obtain it. hint: If you meant to add a submodule, use: hint: hint: git submodule add <url> server/uketuke/jquery.ripples hint: hint: If you added this path by mistake, you can remove it from the hint: index with: hint: hint: git rm --cached server/uketuke/jquery.ripples hint: hint: See "git help submodule" for more information. fujisawukenoMBP:Lamplight-Reception hujisawa$ git rm --cached server/uketuke/jquery.ripples error: the following file has staged content different from both the file and the HEAD: server/uketuke/jquery.ripples (use -f to force removal)
how to Solution this git error
It's not a fundamental solution, but anyway
The above error will appear if the directory you are trying to commit to has another git repository.
So you can
rm -rf .git/
or whatever directory has another git repository you want to commit to.
If you remove git from the file, you will be able to add and commit.