From: Oleg Broytman Date: Thu, 4 Jun 2015 09:39:41 +0000 (+0300) Subject: How to deploy code on a remote host: push, ssh, pull X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=6ac5e8abf4fcf720b730dc946353bd9727bc2a14;p=git-wiki.git How to deploy code on a remote host: push, ssh, pull --- diff --git a/pep-git.txt b/pep-git.txt index 73b2ecb..8aa472c 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -283,6 +283,12 @@ non-bare repository: git refuses to update remote working directory. You really should push only to bare repositories. For non-bare repositories git prefers pull-based workflow. +When you want to deploy code on a remote host and can only use push +(because your workstation is behind a firewall and you cannot pull +from it) you do that in two steps using two repositories: you push +from the workstation to a bare repo on the remote host, ssh to the +remote host and pull from the bare repo to a non-bare deployment repo. + Tags ''''