Git command returns "not found" or error code 404
症状
When pulling from, pushing or cloning to Stash, it responds with the error code 404.
$ git push URL master
fatal: URL/info/refs not found: did you run git update-server-info on the server?
原因
The project and/or repository do not exist, or you do not have permissions to view this repository.
In Stash 1.0.1 and above you should not get this error, instead you will get an explanation inline in the terminal, e.g. when using https:
$ git clone https://stash-dev.atlassian.com/scm/PROJ/repo
Cloning into 'repo'...
fatal: remote error: Repository does not exist
The requested repository does not exist, or you do not have permission to
access it.
or when using ssh:
$ git clone https://stash.example.com/scm/PROJ/repo
Cloning into 'repo'...
fatal: remote error: Remote URL invalid
A repository could not be determined from the remote URL. Please confirm the
clone URL in Stash and try again. URL suffix: '/PROJ/repo'
fatal: The remote end hung up unexpectedly
ソリューション
See Creating projects.
最終更新日 2012 年 11 月 21 日
Powered by Confluence and Scroll Viewport.