These two files contains absolute submodule path:
{submodule}/.git
.git/modules/{submodule}/config
So, if you moved the repo, the absolute path in these two files are not valid, and cause the ‘not a git repository’ error. Just fix these files manually.
More Related Contents:
- Move the most recent commit(s) to a new branch with Git
- .gitignore exclude folder but include specific subfolder
- Is there a “theirs” version of “git merge -s ours”?
- Pushing to Git returning Error Code 403 fatal: HTTP request failed
- Is it possible to move/rename files in Git and maintain their history?
- How can I make git accept a self signed certificate?
- How to push to a non-bare Git repository?
- How to clone git repository with specific revision/changeset?
- Can’t push to GitHub because of large file which I already deleted
- Definitive recommendation for git autocrlf settings
- Why does git say “Pull is not possible because you have unmerged files”?
- I ran into a merge conflict. How do I abort the merge?
- git pull fails “unable to resolve reference” “unable to update local ref”
- git – skipping specific commits when merging
- How to normalize working tree line endings in Git?
- How to configure an existing git repo to be shared by a UNIX group
- change default git hooks
- How to shrink the .git folder
- Getting the difference between two repositories
- How to see which commits in one branch aren’t in the other?
- Why doesn’t my bash prompt update?
- git push: permission denied (public key)
- Database migrations in a complex branching system
- Git: Merge a Commit into a different Branch
- How to `git pull` while ignoring local changes?
- List all developers on a project in Git
- ORIG_HEAD, FETCH_HEAD, MERGE_HEAD etc
- Git/gitosis: How to check validity of user name and email?
- When doing a ‘git push’, what does ‘–set-upstream’ do?
- BitBucket: Host key verification failed