Quickly set up and use Git repos on a private server via SSH. The server acts as the remote and holds bare repos, which the server and clients can easily clone into local working copy repos. The server can be a client too.
server commands:
mygit setup
— set up the server by creating a base directory to store all remotesmygit init reponame
— create a repo on the servermygit ffonly reponame true|false
— changereceive.denyNonFastforwards
for a repo on the servermygit remove -f reponame
— remove a repo from the server
client commands:
mygit clone reponame
— clone a repo from the servermygit push
— set server as remote for the current local repo