forked from git-ftp/git-ftp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
69 lines (47 loc) · 1.71 KB
/
README
File metadata and controls
69 lines (47 loc) · 1.71 KB
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
git-ftp.sh
==========
(c) René Moser, <mail@renemoser.net>, 2010
This application is licenced under GNU General Public License, Version 3.0
http://www.gnu.org/licenses/gpl-3.0-standalone.html
Summary
-------
Use git-ftp.sh to upload only the files to a FTP server, which have changed
since the last upload. This saves time and bandwith.
About
-----
I use git-ftp.sh for my script based projects, mostly PHP. Most of the low-cost
web hoster does not provide SSH nor git support, only FTP.
That is why I needed a easy way to deploy my git tracked projects. Instead to
transfer always the whole project, I thought, why not only transfer the files
which changed since the last time, git can tell me those files.
Even if you are playing with different branches, git-ftp.sh knows which files
are different. No ordinary FTP client can do that.
Installing
----------
Make sure git and curl is installed.
# aptitude install git-core curl
The easiest way is to use git for installing:
$ mkdir -p ~/dev/git-ftp.sh.git
$ cd ~/dev/git-ftp.sh.git
$ git clone http://github.com/resmo/git-ftp.sh.git .
$ chmod 0755 git-ftp.sh
$ mkdir ~/bin
$ cd ~/bin/
$ ln -s ~/dev/git-ftp.sh.git/git-ftp.sh git-ftp
After this you can use 'git ftp' or 'git-ftp'
Updating
--------
Update to the latest version is simple as:
$ cd ~/dev/git-ftp.sh.git
$ git pull
Usage
-----
$ cd my_git_tracked_project
$ git ftp ftp://host.example.com/public_html --user <user> -p <password>
For interactive password prompt use:
$ git ftp ftp://host.example.com/public_html --user <user> -p
For more options see:
$ git ftp -h
Contributions
-------------
Don't hesitate to use GitHub to improve this tool.