YonderGit: Simplified Git Remote Repository Management
YonderGit aims to simplify some of the common remote git management worflows.
for example: lets say you have a local git repository and you want to start sharing your work with others through a remote git repository, you'll need ssh access and a user on the remote machine.
if you don't want to keep typing the remote password you can add your ssh public key to the authorized_keys of the remote user:
cat ~/.ssh/id_rsa.pub | ssh remoteuser@remotehost 'cd; test -d .ssh || mkdir .ssh && chmod 700 .ssh; cd .ssh; cat >> authorized_keys; chmod 600 authorized_keys'
(without the authorized_keys YonderGit will ask for the remote password a few times, and when it was my first ssh login to the remotehost, before it's ip was added to my local known_hosts file, YonderGit failed.., so you may need to ssh login at least once before using YonderGit)
You can use 'git remote -v' to see which remote repositories you already have.
make sure the remote folder you want as root of your git repos exists:
ssh remoteuser@remotehost 'cd; test -d gitrepos || mkdir gitrepos'
run this command from the root of your local repository to create a remote repository and add it as remote to your local repository:
ygit.py setup origin ssh://remoteuser@remotehost/~/gitrepos/testrep.git
origin can be any name you choose, testrep.git also.
now push you content to the remote repository with:
git push origin master
from now on you have to do 'git push origin master' and 'git pull origin master', to simplify those to 'git pull' and 'git push' you have to setup the default remote refs of your local master branch:
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
now anyone with ssh access to remotehost can clone your repo and collaborate:
git clone remoteuser@remotehost:/home/remoteuser/gitrepos/testrep.git
I think YonderGit is a nice tool that can help bring git to more people who don't have time to learn all the little git commands.