2015-05-19 131 views
0
  • 我已经通过apt-get
  • 我安装了腻子,选美,plink.exe和msysgit我的Windows机器上安装到C的git的Ubuntu LTS 14服务器版:\工具
  • 我设置系统环境变量GIT_SSH = C:\Tools\plink.exe
  • 我创建了一个用户的git

adduser --system --shell /bin/bash --group --disabled-password --home /home/git gitGit仓库和msysgit签出?

  • 我给chown git /usr/bin/git

  • 我生成私钥和公钥,感动了公钥上/home/git/.ssh/authorized_keys,增加私钥盛会。我可以通过SSH服务器上的公钥认证登录。

  • 在我的Ubuntu机器,我已经创建了Git仓库

mkdir /source cd source/ git init --bare testprojekt.git chown -R git testprojekt.git/

  • 我创建了一个testfolder和新的空仓库里面的test.txt cd testprojekt.git/ mkdir testfolder cd testfolder/ touch test.txt echo "content" > test.txt

  • 在我的Windows机器在Git-Bash中,我执行了 git config --global user.name "my name" git config --global user.email"my email" cd /C/Source/ #future working directory git clone ssh://[email protected]<FQDN>:<Port>/source/testprojekt.git cd testprojekt/ git fetch origin

提取的存储库为空。如何将testfolder和test.txt检出到工作目录中?

在此先感谢

回答