Basic scripting for a few automations with own git-server with coupling with git-shell. Based on source.
- pre-installed git-core
- created git-user (git for instance)
- git-user have to be configured logining under git-shell
- this repo should be located in home directory of git-user (/home/git for instance)
- git-user home directory should contain following directories (or simlinks):
- repos for manadged repos
- repo-trash for deleted repos
- NOT-bare repo repo-template for creating pre-initialized repos
- ~$
git clone git@<server>:repos/<repoName.git>
- ~$
ssh git@<server>
- git>
help
command | description |
---|---|
help | show simple autogenerated list of commands |
list [--full] | show simple autogenerated list of bare repos inside repos, --full demand to generate extended list of files inside repos |
new <repoName> | create a pre-initialized with repo-template repo |
new-empty <repoName> | create an empty repo |
rename <srcName> <newName> | rename the repo |
copy <srcName> <newName> | copy the repo |
delete <repoName> | remove the repo to repo-trash with placing time signature to name |