GithubHelp home page GithubHelp logo

offworld's Introduction

Offworld

Manage out-of-repo files with git

Offworld lets you add files to git that are "not in the repo". Offworld wil reach out and collect the files from the system and push them back if needed.

Installation

Offworld is a single python script which is best installed overtop of git. This will allow offworld to sync the files every time a git command is run. You may use Offworld as an independent tool as well but ymmv.

Method 1

git clone [email protected]:micahjmartin/Offworld.git
cp Offworld/offworld.py ~/.local/bin/git

Method 2

git clone [email protected]:micahjmartin/Offworld.git
cp Offworld/offworld.py ~/.local/bin/offworld
echo "alias git=offworld" >> ~/.bashrc

Usage

For any files that you want to track, add them to offworld

git track /etc/ssh/sshd_config
# Now call git commands as normal. Offworld will add and track the files as they are updated
git status

To push repo changes back to the origin directory, run a sync command

git sync
# OR
sudo git sync # CAREFUL WHAT YOU OVERWRITE

Reasoning

Why does offworld exist? I wanted to manage system and local configs in a single repo without having to worry about symlinks, information leakage, or manually copying files around.

offworld's People

Contributors

nullmonk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.