Skip to content

Commit

Permalink
reset to resmo
Browse files Browse the repository at this point in the history
  • Loading branch information
roojs committed Dec 23, 2010
1 parent 9066f29 commit e492856
Show file tree
Hide file tree
Showing 3 changed files with 415 additions and 281 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
René Moser <mail@renemoser.net>
Eric Greve <ericgreve@gmail.com>
Timo Besenreuther <timo@ezdesign.de>
Eric Doughty-Papassideris <github.com/ddlsmurf>
35 changes: 31 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Known Issues
- Git Submodules are currently not supported. I am working on it.
- See http://github.com/resmo/git-ftp/issues for open issues


Installing
----------
See INSTALL file.
Expand All @@ -38,11 +39,25 @@ See INSTALL file.
Usage
-----
$ cd my_git_tracked_project
$ git ftp push ftp://host.example.com/public_html --user <user> -p <password>
$ git ftp push ftp://host.example.com/public_html --user <user> --password <password>

For interactive password prompt use:
$ git ftp push ftp://host.example.com/public_html --user <user> -p
$ git ftp push ftp://host.example.com/public_html -u <user> -p

Pushing the first time needs option --force or -f because it will not find any deployed sha1 hash


Testing and Help
----------------
For testing mode use --dry-run alias -D
$ git ftp push ftp://host.example.com/public_html --dry-run -u <user> -p

For more options see:
$ git ftp help


Using Defaults
--------------
Setting defaults for a git project in .git/config
$ git config git-ftp.user john
$ git config git-ftp.url ftp.example.com
Expand All @@ -51,8 +66,20 @@ Setting defaults for a git project in .git/config
After setting defaults, push to john@ftp.example.com is as simple as
$ git ftp push

For more options see:
$ git ftp help

Using Scopes
------------
For using defaults for different systems, use the so called scope feature.
$ git config git-ftp.<scope>.<(url|user|password)> <value>

Here I set the params for the scope "foobar"
$ git config git-ftp.foobar.url ftp.testing.com:8080/foobar-path
$ git config git-ftp.foobar.password simp3l

Push to scope foobar alias john@ftp.testing.com:8080/foobar-path using password simp3l
$ git push -s foobar

Because I didn't set the user for this scope, it takes the user "john" as set before in defaults.


Contributions
Expand Down
Loading

0 comments on commit e492856

Please sign in to comment.