I have a server where I have installed gitlab and have created a project. I modified the post-receive hook where I declared the working tree and the git repo. After that I cloned my project to my local machine and everything went perfectly. When I tried to push I got the following error.
git.exe push --progress "origin" master:master Counting objects: 10, done. Delta compression using up to 4 threads. Compressing objects: 100% (9/9), done. Writing objects: 100% (10/10), 1.35 KiB | 0 bytes/s, done. Total 10 (delta 3), reused 0 (delta 0) remote: GitLab: The project you were looking for could not be found. To ssh://server/path/repo.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'ssh://git@server/path/repo.git' git did not exit cleanly (exit code 1) (6240 ms @ 11/23/2016 2:35:10 PM) It says that the project could not be found but I was able to pull it. Gitlab and the repo are on the same server.
If anyone has any fix, it would be greatly appreciated.

git remote -v? The URL you're pushing to looks odd.