我在我的本地机器上有一个项目,我一直在单独工作,我想推送到远程服务器(运行 ubuntu 和 gitosis)
在我做的远程服务器上
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 dev@123.456.xx.xxx:psdemo.git
现在:当我尝试推动时,会发生以下情况
git push origin master
fatal: 'psdemo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
这在某种程度上是有道理的,因为我只有一个空的 git repo。
如何将我的文件推送到这个远程服务器?我想我需要的是从我的本地机器克隆到远程机器,不知何故?