From 6ac5e8abf4fcf720b730dc946353bd9727bc2a14 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 4 Jun 2015 12:39:41 +0300 Subject: [PATCH 1/1] How to deploy code on a remote host: push, ssh, pull --- pep-git.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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 '''' -- 2.39.2