Skip to main content

fuggit: for when you just can’t put that one annoying file in git

You know the feeling. You’re making a quick dirty hack to a file on a remote machine. The file isn’t under version control. You want to have the convenience of editing the file locally, and you want the ability to roll back your changes. Putting the remote file under version control is just too hard, so what do you say? fuggit.

Specifically:

fuggit add remote.hostname.com/etc/file.name

this will grab /etc/file.name from the machine remote.hostname.com; save it as remote.hostname.com/etc/file.name under $PWD. The file will be added and committed to git.

fuggit pull remote.hostname/etc/file.name

can be used to refresh your local copy of the file. Any local changes will be preserved; any remote changes will result in a new commit.

fuggit vimdiff remote.hostname/etc/file.name

will open a vimdiff window showing your local working copy of the file and the remote copy. Thanks to the magic of vim, any changes you make to the remote file will be pushed to the servce once you close the file. Any local changes will be left for you to commit as you see fit.

Installation

Before you can use fuggit, you’ll have to do a spot of basic setup.

You’ll want to create a directory to use for your local history:

mkdir localhistory
cd localhistory
git init .

You’ll need to perform all fuggit commands from this directory. As you add files you’ll get one directory under this base for each host you’re managing files on.

You could install fuggit system-wide:

sudo pip install fuggit

Or you could create a virtualenv inside your localhistory directory and install it there:

virtualenv .
source bin/activate
pip install fuggit

Metadata

Release files for fuggit 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fuggit 0.0.3
File Size Uploaded Provenance
fuggit-0.0.3.tar.gz 3.2 kB Without provenance Details

Release files / fuggit-0.0.3.tar.gz

Download URL fuggit-0.0.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
42013415e585c86758f216ec2cf738f4983910397eced1cbd425b3a5e0cea6a1
BLAKE2b-256 checksum
How to use checksums
77b9f953197511b165851e4a4663d104699ad0dab6b8fb18c836fdd953d68e30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for fuggit 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page