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
Or, you can simply use:
git clone user@server:/full/path/to/your/directory
May be you forgot to run git --bare init
on the remote folder
That was my problem
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.