posttoyourowngittree

来自「ipsec vpn」· 代码 · 共 37 行

TXT
37
字号
-*- emacs-wiki -*-You need a machine on a public IP that can run either anonymous rsync (somewhatdeprecated) or http. It's better if you have a machine on which you can ssh into and on which youcan install git, or at least git-init and git-unpack-objects. If you don't have that, but can FTP mirror to it, or rsync to it (perhapsover SSH), then you can make it work. Just pretend your local machine is theremote machine, make a new directory, and arrange to push that directory toyour web server.So, you start by doing this on your laptop/desktop:     cd /someplace     cg-clone http://git.openswan.org/public/scm/openswan.git/This creates a directory openswan.git, and sets up the "origin" branch topoint to the above url. To do the equivalent of "cvs update", you run"git pull" (or cg-fetch).Next, you login to your web server, and do:     ssh mywebserver     cd /var/www     mkdir -p scm/openswan.git     cd scm/openswan.git     git initOn your laptop you can now do:     cd /someplace/openswan.git     cg-branch-add public git+ssh://mywebserver/var/www/scm/openswan.git     cg-push public     (it should copy everything to your web server)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?