我一直在尝试设置一台登台机器来在家中运行项目(rails 应用程序)。
# Remote machine connection
REPLOGIN=joel
REPADDRESS=192.168.2.100
REPLOCATION=/Users/joel/Projects/bio_watts #Repo location
REPNAME=biowatts
# Copy the repo to the server
echo "Copying the git repo to the server $REPADDRESS"
echo "repname:$REPNAME"
TEMPREP="$REPNAME.git"
echo "$TEMPREP"
git clone --bare .git $TEMPREP
scp -r $TEMPREP $REPLOGIN@$REPADDRESS:$REPLOCATION/
# Set up the origin for the project
#echo "Linking current repository to remote repository"
git remote add imac $REPLOGIN@$REPADDRESS:$REPLOCATION/$REPNAME.git/
这一切都很好
$git remote
imac <== this is my remote machine
当我尝试 git push 到这台机器时,我得到:
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
我知道关于 SSH 的一些东西......但我不明白我需要在本地和远程机器(Mac OS X Lion)上做什么。
有人可以帮忙吗?
干杯,
乔尔
下一个问题:
在我的远程机器上,我确实找到了克隆的 biowatts.git 文件……但我没有看到项目文件(rails 应用程序)……它是如何工作的?
我的意图是 git push 到我的 imac 并在那里运行我的应用程序(瘦启动)???
我需要手动复制我的文件吗?我假设 git clone 会复制我需要的每一个......