我有我的本地机器上的一个项目,我一直独自工作,我想推送到远程服务器(运行Ubuntu &的gitosis)GIT推新项目首次
在远程服务器我做
git init
Initialized empty Git repository in /home/stefan/.git/
本地git status
说
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)
我也做
git remote add origin [email protected]:psdemo.git
现在:当我尝试推,将发生以下情况
git push origin master
fatal: 'psdemo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
这是有道理的方法,因为我只是一个空混帐回购协议。
如何将我的文件推送到此远程服务器?我想我需要的是从本地机器克隆到远程机器,不知何故?