Skip to content
simon-danielssonPublic

About

A minimal and opinionated git ssh server CLI frontend written in D.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

61 Commits

Folders and files

Repository files navigation

dgit

Keep track of your git repositories in the CLI.

MIT License Last commit

Info • Install • Usage • License


Info

dgit is built for people that want a low-friction solution to organizing and keeping track of git repositories stored in a git server on their local network.


Prerequisites

  • git
  • ssh
  • ldc (D compiler)
  • a unix (e.g macOS or gnu/linux) ssh server
  • ssh auth setup between machine and server

Install

Clone this repo and run the provided install script (at your own risk).

git clone --depth=1 https://github.com/simon-danielsson/dgit.git
cd dgit
chmod +x install.sh
./install.sh

Usage

WARNING!

dgit runs shell commands on the ssh server address you provide, including find and rm -rf. Be smart - run this program in a test environment first to verify that it's not going to break stuff. I am not to be held accountable if you end up breaking your system.

Setup

On the machine where you will be executing dgit, you have to configure persistence of your ssh connections (so that repo lookups run faster). This is done via the options ControlMaster, ControlPath and ControlPersist.

# ~/.ssh/config
# fill in the blanks "{}"

Host {hostname alias}
    HostName {ip address #.#.#.#}
    User {user}
    IdentityFile ~/.ssh/id_ed25519 # or wherever you've got that set up
    ControlPath ~/.ssh/cm-%r@%h:%p # leave this alone
    ControlMaster auto # leave this alone
    ControlPersist 5 # connection persists for 5 seconds

Run dgit help for details on usage.


License

This project is licensed under the MIT License.

About

A minimal and opinionated git ssh server CLI frontend written in D.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages