Created
October 25, 2017 20:39
-
-
Save cebe/1084422f55cf9a683fe34b440c8cc28d to your computer and use it in GitHub Desktop.
Revisions
-
cebe created this gist
Oct 25, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ # prepare server ssh [email protected] git init --bare /srv/testrepo.git exit # in local repo git remote add testrepo [email protected]:/srv/testrepo.git git push testrepo master # now you can add a hook in testrepo.git that runs after push and updates a working copy of /srv/testrepo.git