Code Monkey home page Code Monkey logo

git-berth's Introduction

git_berth

Provides convenient setup of post-conception resting places for new ideas.

Designed to work with SSH destinations which contain a directory heirarchy like this:

git/
git/category
git/category/project
git/category_2
git/category_2/project

Categories ("BERTHs") could include, for example, python_modules or templates.

Upon getting berth, git_berth will register the new remote in the local git repo.

A common sequence of commands is

$ git_berth create emergence scripts flash_of_inspiration
$ git push emergence --all

The remote repo is configured to accept pushes into its master branch (git config receive.denyCurrentBranch ignore).

Until a method is provided to map git remote names to ssh hostnames, it will continue to be necessary to have a line in ~/.ssh/config which provides a single-word alias for a given host. For example, in this case ~/.ssh/config might contain

Host emergence
  HostName emergence.example.com
  User creator

The BERTH would be located in ~/git/ on the server emergence.example.com, resulting in the creation of a bare git repository at

~/git/scripts/flash_of_inspiration/

git_berth will break out early without creating a repository if a remote by the name HOST already exists.

Usage:

git_berth {create, list} ...

Subcommands:

    git_berth create HOST BERTH PROJECT
        Creates a repo at HOST in the directory
          git/BERTH/PROJECT.
        BERTH can be a multi-level path.
        Creates a corresponding remote named HOST in the local repo.

    git_berth list HOST [BERTH]
        With BERTH: lists projects in that berth on HOST.
        Without BERTH: lists berths on HOST.

git_berth assumes that the HOST has a directory named 'git'
  which contains berths.

HOSTs can be any string which can both
  serve as a valid host parameter to $(ssh)
  and as the host component of a URL passed to $(git remote add).

git-berth's People

Contributors

intuited avatar

Stargazers

 avatar

Watchers

 avatar  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.