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 8273153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:22:50+00:00 2026-06-08T07:22:50+00:00

I have a project on my local machine I’ve been working on alone, that

  • 0

I have a project on my local machine I’ve been working on alone, that I’d like to push to a remote server (running ubuntu & gitosis)

On the remote server I did

git init
Initialized empty Git repository in /home/stefan/.git/

Locally git status says

git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   .DS_Store
#   .travis.yml
#   license.txt
#   nbproject/
#   bla/.DS_Store
#   bla/cache/
nothing added to commit but untracked files present (use "git add" to track)

I have also done

git remote add origin dev@123.456.xx.xxx:psdemo.git

Now: when I try to push, the following happens

git push origin master
fatal: 'psdemo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

It makes sense in a way since I just have an empty git repo.

How can I push my files to this remote server? I guess what I need is cloning from my local machine to the remote machine, somehow?

  • 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-08T07:22:51+00:00Added an answer on June 8, 2026 at 7:22 am

    The string

    dev@123.456.xx.xxx:psdemo.git
    

    should be a valid ssh path. As far as I see in the previous line:

    git init
    Initialized empty Git repository in /home/stefan/.git/
    

    You created a repository in /home/stefan/ so I would expect something like:

    stefan@123.456.xx.xxx:~
    

    But probably it isn’t what you want. You should create a folder psdemo.git in your home in the remote server. For this, do a

    git init --bare ~/psdemo.git
    

    In that and then add the remote with:

     stefan@123.456.xx.xxx:~/psdemo.git
    

    Then you should be able to push!

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

Sidebar

Related Questions

I have a project that may be started on local machine with ./manage.py runserver
I have an ASP.NET MVC project that works fine on my local machine (no
I have a project checked out on my local machine from a remote repository,
I am having my mvc project that is working fine on my local machine.
I have a project (.NET 3.5 C#) that works fine on the local machine
I have a working tree on my local machine, and a remote repository as
I'm working on a project with couple others. We all have local copies of
I have Django project on Dreamhost server which has several views that returns Json
i have create clone of project on local machine with git clone git@github.com:test/abc.git Now
local machine: Fedora 13 Subversion: 1.6.9 remote machine: CentSO 5.3 subversion 1.4.2 I have

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.