Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7862551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:10:38+00:00 2026-06-02T23:10:38+00:00

I am trying to install git on a server and have some problem when

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:10:39+00:00Added an answer on June 2, 2026 at 11:10 pm

    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.


    Abpostman1 adds in the comments:

    Had this issue because I was trying to push in a --bare repo non empty.
    Even if it was exactly the same files, I had the same error message: "Not git repository"

    I had to backup my /httpdocs remote folder, create an empty new /httpdocs folder, do again git init --bare and re-push from local.

    My remote address : url = ssh://magento@magento/home/magento/httpdocs (with a private/public key in both sides)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to install Git on my web server. When i try
I have installed git on my server. When I try to do git init,
Currently I'm trying to install PHP 5.3.0 on some Linux testing server. As we've
So I'm using GIT, trying to push code to my remote server. on a
I am trying to install git within my home directory on a unix server
I have been trying to install Git using Homebrew on OSX Lion for over
I am trying to install git-svn on mac os x 10.5 using the following
I have been trying to use the ruby-git gem to make commits etc from
I have a git branch on my production server which is centos. I am
While trying to git push heroku master, I keep getting the error : Counting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.