-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
117 lines (94 loc) · 5.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
<link rel="canonical" href="https://git-ftp.github.io">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Git-ftp by git-ftp</title>
</head>
<body>
<header>
<div class="inner">
<h1>Git-ftp</h1>
<h2>Upload to FTP servers the Git way</h2>
<a href="https://github.com/git-ftp/git-ftp" class="button"><small>View project on</small> GitHub</a>
</div>
</header>
<div id="content-wrapper">
<div class="inner clearfix">
<section id="main-content">
<p>If you use Git and you need to upload your files to an FTP server,
Git-ftp can save you some time and bandwidth by uploading only those files that
changed since the last upload.</p>
<p>It keeps track of the uploaded files by storing the commit id
in a log file on the server. It uses Git to determine which local
files have changed.</p>
<p>You can easily deploy another branch or go back in the Git history to upload
an older version.</p>
<div class="highlight highlight-source-shell"><pre><span class="pl-c"># Setup</span>
git config git-ftp.url ftp.example.net
git config git-ftp.user ftp-user
git config git-ftp.password secr3t
<span class="pl-c"># Upload all files</span>
git ftp init
<span class="pl-c"># Or if the files are already there</span>
git ftp catchup
<span class="pl-c"># Work and deploy</span>
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>new content<span class="pl-pds">"</span></span> <span class="pl-k">>></span> index.txt
git commit index.txt -m <span class="pl-s"><span class="pl-pds">"</span>Add new content<span class="pl-pds">"</span></span>
git ftp push
<span class="pl-c"># 1 file to sync:</span>
<span class="pl-c"># [1 of 1] Buffered for upload 'index.txt'.</span>
<span class="pl-c"># Uploading ...</span>
<span class="pl-c"># Last deployment changed to ded01b27e5c785fb251150805308d3d0f8117387.</span></pre></div>
<h2>
<a id="further-reading" class="anchor" href="#further-reading" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Further Reading</h2>
<ul>
<li>Read the <a href="https://github.com/git-ftp/git-ftp/blob/master/man/git-ftp.1.md">manual</a> for more options, features and examples.</li>
<li>See the <a href="https://github.com/git-ftp/git-ftp/blob/master/INSTALL.md">installation instructions</a> for your system.</li>
<li>Check <a href="http://github.com/git-ftp/git-ftp/issues">git-ftp issues on GitHub</a> for open issues.</li>
<li>Follow this project on twitter <a href="https://twitter.com/gitftp">@gitftp</a>.</li>
</ul>
<h2>
<a id="limitations" class="anchor" href="#limitations" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Limitations</h2>
<ul>
<li>Windows and OS X: I am very limited in testing on Windows and OS X. Thanks
for helping me out fixing bugs on these platforms.</li>
<li>git-ftp as deployment tool: git-ftp was not designed as centralized
deployment tool. While running git-ftp, you have to take care, no one pushes or
touches this repo (e.g. no commits, no checkouts, no file modifications)!</li>
</ul>
<h2>
<a id="contributions" class="anchor" href="#contributions" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Contributions</h2>
<p>Don't hesitate to improve this tool.
Don't forget to add yourself to the <a href="https://github.com/git-ftp/git-ftp/blob/master/AUTHORS">AUTHORS</a> file.
Core functionality is unit tested using shunit2.
You can find the tests in <code>tests/</code>.</p>
<h2>
<a id="copyright" class="anchor" href="#copyright" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Copyright</h2>
<p>This application is licensed under <a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GNU General Public License, Version 3.0</a></p>
</section>
<aside id="sidebar">
<a href="https://github.com/git-ftp/git-ftp/zipball/master" class="button">
<small>Download</small>
.zip file
</a>
<a href="https://github.com/git-ftp/git-ftp/tarball/master" class="button">
<small>Download</small>
.tar.gz file
</a>
<p class="repo-owner"><a href="https://github.com/git-ftp/git-ftp"></a> is maintained by <a href="https://github.com/git-ftp">git-ftp</a>.</p>
<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the Architect theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.</p>
</aside>
</div>
</div>
</body>
</html>