![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Synchronize GIT changes via 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.
npm install -g giftp
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.
var giftp = require('giftp');
giftp.run({
local: "/local/path",
remote: "/remote/path",
sftp: "myserver.com:22"
});
FAQs
Synchronize GIT changes via FTP
The npm package giftp receives a total of 4 weekly downloads. As such, giftp popularity was classified as not popular.
We found that giftp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.