Updated man page for git-scp

This commit is contained in:
CJ 2014-12-18 15:45:35 +08:00
parent 8259a0dcb4
commit 909072ad54
3 changed files with 32 additions and 4 deletions

View file

@ -104,7 +104,7 @@ $ git remote add staging myStagingServer:/var/www/html
.IP "" 0
.
.P
Copy unstaged files to remote
Copy unstaged files to remote\. Useful when you want to make quick test without making any commits
.
.IP "" 4
.
@ -181,6 +181,21 @@ $ git scp staging js/vendor/
.
.IP "" 0
.
.P
Copy files from specific directory to multiple servers
.
.IP "" 4
.
.nf
$ for dest in web1 web2 web3; do
git diff \-\-name\-only 4\.8\.3 4\.8\.2 app/code/community app/design skin/ | xargs git scp $dest
done;
.
.fi
.
.IP "" 0
.
.SH "AUTHOR"
Written by Chern Jie <\fIlim@chernjie\.com\fR>
.

View file

@ -126,7 +126,7 @@
<pre><code>$ git remote add staging myStagingServer:/var/www/html
</code></pre>
<p> Copy unstaged files to remote</p>
<p> Copy unstaged files to remote. Useful when you want to make quick test without making any commits</p>
<pre><code>$ git scp staging
</code></pre>
@ -156,9 +156,16 @@
<pre><code>$ git scp staging js/vendor/
</code></pre>
<p> Copy files from specific directory to multiple servers</p>
<pre><code>$ for dest in web1 web2 web3; do
git diff --name-only 4.8.3 4.8.2 app/code/community app/design skin/ | xargs git scp $dest
done;
</code></pre>
<h2 id="AUTHOR">AUTHOR</h2>
<p>Written by Chern Jie &lt;<a href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#108;&#105;&#x6d;&#64;&#x63;&#x68;&#x65;&#x72;&#x6e;&#106;&#105;&#x65;&#x2e;&#x63;&#x6f;&#109;" data-bare-link="true">&#108;&#x69;&#109;&#x40;&#x63;&#104;&#101;&#x72;&#x6e;&#x6a;&#105;&#101;&#46;&#x63;&#111;&#109;</a>&gt;</p>
<p>Written by Chern Jie &lt;<a href="&#109;&#97;&#x69;&#x6c;&#116;&#x6f;&#58;&#108;&#x69;&#x6d;&#64;&#99;&#x68;&#x65;&#114;&#x6e;&#106;&#105;&#x65;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#108;&#x69;&#x6d;&#x40;&#99;&#x68;&#x65;&#114;&#110;&#x6a;&#x69;&#x65;&#46;&#99;&#111;&#109;</a>&gt;</p>
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>

View file

@ -45,7 +45,7 @@ Internally this script uses `rsync` and not `scp` as the name suggests.
$ git remote add staging myStagingServer:/var/www/html
Copy unstaged files to remote
Copy unstaged files to remote. Useful when you want to make quick test without making any commits
$ git scp staging
@ -69,6 +69,12 @@ Internally this script uses `rsync` and not `scp` as the name suggests.
$ git scp staging js/vendor/
Copy files from specific directory to multiple servers
$ for dest in web1 web2 web3; do
git diff --name-only 4.8.3 4.8.2 app/code/community app/design skin/ | xargs git scp $dest
done;
## AUTHOR
Written by Chern Jie &lt;<lim@chernjie.com>&gt;