New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

giftp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giftp

Synchronize GIT changes via FTP

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

giftp

npm npm

Synchronize GIT changes via FTP

giftp stands for GIT and FTP

Are you planning to keep your website in GIT repository and upload it to the public hosting by FTP?
Then you may consider this little tool...

It can also be used for any other task that requires sending GIT diff via FTP.

Install

npm install -g giftp

Usage

giftp [<config-file>] [<config-name>] [--no-delete]

<config-file> - a JSON file with the connection parameters. If not specified, giftp looks for a file named giftp.json in the current directory.

<config-name> - a config name (if there are multiple configs in the file).

// giftp.json
{
  "local": "C:/myrepo/html",
  "remote": "/myserver/public_html",
  "sftp": "mydomain.com",
  "login": "mylogin",
  "password": "mypassword"
}
// another.json
{
  "config1": {
    "local": "~/work/myrepo/html",
    "remote": "/myserver/public_html",
    "sftp": "mydomain.com"
  },
  "config2": {
    "local": "~/work/myrepo/img",
    "remote": "/myserver/public_html/img",
    "sftp": "mydomain.com:22"
  }
}

local directory must reside inside the GIT working copy, but don't have to be its root directory.

--no-delete - don't delete remote files. This option is useful if you remove file from version control, but want to keep it on server. This flag can be also passed with the config object as "no_delete": true .

After synchronizing, giftp will place the .giftp file with the latest revision ID in both the local and the remote directories to use it as the "from" revision next time.
This will allow uploads from several working copies.

To manually tweak the "from" revision, you can delete the remote .giftp file and modify the local one.

Calling from your own code

var giftp = require('giftp');
giftp.run({
  local: "/local/path",
  remote: "/remote/path",
  sftp: "myserver.com:22"
});

Keywords

FAQs

Package last updated on 21 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc