Git “does not appear to be a git repository”

前端 未结 3 789
自闭症患者
自闭症患者 2020-12-03 04:47

I am trying to install git on a server and have some problem when I try to perform the first push. I successfully installed git on the server, created the repository locally

3条回答
  •  无人及你
    2020-12-03 05:49

    I will assume you are using ssh to clone your repo.

    That means you need the full path of the repo on the server in your ssh address:

    git clone ssh://sshuser@serverIP/full/absolute/path/to/my_repo
    

    Note: if your 'my_repo' is a bare one (to allow pushing), that would be:

    git clone ssh://sshuser@serverIP/full/absolute/path/to/my_repo.git
    

    The stdin: is not a tty simply means that in the .bashrc of the sshuser account, there is something expecting an input.

提交回复
热议问题