1. get access to gitolite-admin repository
2. clone it and do changes to git/gitolite-admin/conf/gitolite.conf
3. do push
4. update Cgit website configuration at git.yourcomapny.com file /etc/cgitrc
5. provide mail notifications: copy 'config' from existing repo to new repo at server.
"<repo>/config" content:
[core] repositoryformatversion = 0 filemode = true bare = true [hooks] mailinglist = git-commit@company.com emailprefix="[GIT] " showrev = "echo "All Branches: "; git branch; echo; echo "Summary of changes:"; git log $oldrev..$newrev; echo; echo; git diff-tree -p --stat --summary --find-copies-harder $oldrev..$newrev;"
To automate all this steps please read this.
Attention: command for 'showrev' is not ideal and send empty mail in case of branch merges, and branch removal.
Attention: command for 'showrev' is not ideal and send empty mail in case of branch merges, and branch removal.
No comments:
Post a Comment