我做了“git init”但收到错误“似乎不是一个git存储库”

时间:2017-09-15 13:27:47

标签: git ssh atlassian-sourcetree

我想在SSH服务器上创建一个git存储库。

我正走在这条道路上/webseiten/staging。我在那里创建了一个名为hellauf.git的文件夹,在这个文件夹中我使用了命令git init --bare。现在有以下文件夹和文件:

Git repository file layout

权限如下:

-rw-r----- 1 u322494 nobody   66 Sep 15 14:46 config
-rw-r----- 1 u322494 nobody   73 Sep 15 14:46 description
-rw-r----- 1 u322494 nobody   23 Sep 15 14:46 HEAD
drwxr-x--- 2 u322494 nobody 4096 Sep 15 14:46 hooks
drwxr-x--- 2 u322494 nobody 4096 Sep 15 14:46 info
drwxr-x--- 4 u322494 nobody 4096 Sep 15 14:46 objects
drwxr-x--- 4 u322494 nobody 4096 Sep 15 14:46 refs

我现在有一个本地存储库,想要将我的主服务器推送到SSH服务器上的这个远程服务器。

我正在使用SourceTree,在那里我填写了URL / Path:

sshadminaccount@url:/webseiten/staging/hellauf.git

但是当我尝试推送时,我收到以下错误消息:

git -c diff.mnemonicPrefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags staging refs/heads/master:refs/heads/master 
Pushing to sshadminaccount@url:/webseiten/staging/hellauf.git

fatal: '/webseiten/staging/hellauf.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above

这里出了什么问题?

0 个答案:

没有答案