[英]Local windows - Server Ubuntu, git push live no putty
I've a django app, i'd like to set-up with git remote with git push live
command pushing onto AWS EC2 all methods mentioned use putty which isn't able to config it我有一个 django 应用程序,我想使用 git 远程设置 git 远程
git push live
命令推送到 AWS EC2 所有提到的方法都使用无法配置的腻子
I've set up a bare repository with edits( https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa ) done to using this as a reference我已经建立了一个带有编辑的裸存储库( https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa )作为参考
all works fine until I need to hit一切正常,直到我需要打
$ git remote add production demo@yourserver.com:project.git
this line, as ssh was through putty, I faced issues here这条线,因为 ssh 是通过腻子,我在这里遇到了问题
Git post hook windows 10 - Linux system Git 后挂钩 windows 10 - Linux 系统
After setting up the bare repository and configuring it for posthooks在设置裸存储库并将其配置为 posthook 之后
Everything from here would be done in the local machine
Check-in Windows Manage Optional features
签入 Windows
Manage Optional features
Install and activate - OpenSSH Client & OpenSSH Server安装和激活 - OpenSSH 客户端和 OpenSSH 服务器
Create a new config file in.ssh directory which would be located in {user}/.ssh在.ssh 目录中创建一个新的配置文件,该目录将位于 {user}/.ssh
Host foobar
HostName {HostName of EC2 instance}
Port 22
User {user}
IdentityFile {.pem file location}
after this go to the project directory and在此 go 之后到项目目录和
git remote add live foobar:{barerepositoryname}.git
and done!并做了!
try - git push live
now试试 -
git push live
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.