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 and on the server but when I try to make the first push I get this message:
stdin: is not a tty
fatal: '/my_repo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
I googled it and followed everything I could find but nothing worked. What could be wrong?
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:
Note: if your ‘my_repo’ is a bare one (to allow pushing), that would be:
The
stdin: is not a ttysimply means that in the.bashrcof thesshuseraccount, there is something expecting an input.Abpostman1 adds in the comments: