mirror of
https://github.com/tj/git-extras.git
synced 2026-09-14 09:26:19 -04:00
Updated man page for git-scp
This commit is contained in:
parent
8259a0dcb4
commit
909072ad54
|
|
@ -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>
|
||||
.
|
||||
|
|
|
|||
|
|
@ -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 <<a href="mailto:lim@chernjie.com" data-bare-link="true">lim@chernjie.com</a>></p>
|
||||
<p>Written by Chern Jie <<a href="mailto:lim@chernjie.com" data-bare-link="true">lim@chernjie.com</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -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 <<lim@chernjie.com>>
|
||||
|
|
|
|||
Loading…
Reference in a new issue