/gito

Editor agnostic realtime pair programing

Primary LanguageShell

gito

Editor agnostic realtime pair programing (PoC)

Setup

Copy source and add to PATH.

git clone https://github.com/icetan/gito
export PATH=$PWD/gito:$PATH

Usage

Start a central gito share by first creating a shared ssh user.

sudo useradd -m gito
sudo -u gito mkdir -p ~gito/.ssh
sudo -u gito tee -a ~gito/.ssh/authorized_keys < ~/.ssh/id_rsa.pub
sudo chmod g+s ~gito
sudo chmod -R 755 ~gito
sudo chmod 600 ~gito/.ssh/authorized_keys

Create a central gito repo

sudo -u gito gito init --bare ~gito/central

Connect localy

gito clone ~gito/central my-share

Connect remotely. Don't forget to start your sshd.

gito clone gito@ssh-host:central my-share

After you have cloned a gito repo you can start syncing files.

cd my-share
echo Look at this file! > a-file
gito sync

gito sync will pull new changes from the remote central repo and push local changes.

To listen to realtime updates from the central repo use gito listen.