簡體   English   中英

本地 windows - 服務器 Ubuntu、git 推直播無膩子

[英]Local windows - Server Ubuntu, git push live no putty

我有一個 django 應用程序,我想使用 git 遠程設置 git 遠程git push live命令推送到 AWS EC2 所有提到的方法都使用無法配置的膩子

我已經建立了一個帶有編輯的裸存儲庫( https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa )作為參考

一切正常,直到我需要打

$ git remote add production demo@yourserver.com:project.git

這條線,因為 ssh 是通過膩子,我在這里遇到了問題

Git 后掛鈎 windows 10 - Linux 系統

在設置裸存儲庫並將其配置為 posthook 之后

Everything from here would be done in the local machine

簽入 Windows Manage Optional features

安裝和激活 - OpenSSH 客戶端和 OpenSSH 服務器

在.ssh 目錄中創建一個新的配置文件,該目錄將位於 {user}/.ssh

Host foobar
  HostName {HostName of EC2 instance}
  Port 22
  User {user}
  IdentityFile {.pem file location}

在此 go 之后到項目目錄和

git remote add live foobar:{barerepositoryname}.git

並做了!

試試 - git push live

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM