Make sure your:
--prefix folder is known to git. If needed add and commit it first.
--prefix
add
commit
.gitignore file doesn't rule out your desired directory.
.gitignore