我有我的本地機器上的一個項目,我一直獨自工作,我想推送到遠程服務器(運行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
這是有道理的方法,因爲我只是一個空混帳回購協議。
如何將我的文件推送到此遠程服務器?我想我需要的是從本地機器克隆到遠程機器,不知何故?