在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sitaramc/gitolite开源软件地址:https://github.com/sitaramc/gitolite开源编程语言:Perl 87.9%开源软件介绍:Gitolite READMEabout this README(Github-users: click the "wiki" link before sending me anything via github.) This is a minimal README for gitolite, so you can quickly get started with:
For anything more, you need to look at the complete documentation, at: http://gitolite.com/gitolite. Please go there for what/why/how, concepts, background, troubleshooting, more details on what is covered here, advanced features not covered here, migration from older gitolite, running gitolite over http (rather than ssh), and many more topics. Assumptions
Installation and setupserver requirements
steps to installFirst, prepare the ssh key:
Next, install gitolite by running these commands:
Finally, setup gitolite with yourself as the administrator:
If the last command doesn't run perhaps "bin" is not in your "PATH". You can either add it, or just run:
If you get any other errors please refer to the online documentation whose URL was given at the top of this file. adding users and reposDo NOT add new repos or users manually on the server. Gitolite users, repos, and access rules are maintained by making changes to a special repo called "gitolite-admin" and pushing those changes to the server. To administer your gitolite installation, start by doing this on your workstation (if you have not already done so):
Now if you "cd gitolite-admin", you will see two subdirectories in it: "conf" and "keydir". To add new users alice, bob, and carol, obtain their public keys and add them to "keydir" as alice.pub, bob.pub, and carol.pub respectively. To add a new repo "foo" and give different levels of access to these users, edit the file "conf/gitolite.conf" and add lines like this:
Once you have made these changes, do something like this:
When the push completes, gitolite will add the new users to
help for your usersOnce a user has sent you their public key and you have added them as specified above and given them access, you have to tell them what URL to access their repos at. This is usually "git clone git@host:reponame"; see man git-clone for other forms. NOTE: again, if they are asked for a password, something is wrong. If they need to know what repos they have access to, they just have to run "ssh git@host info". access rule examplesGitolite's access rules are very powerful. The simplest use was already shown above. Here is a slightly more detailed example:
Here's what these example rules say:
Please see the main documentation linked above for all the gory details, as well as more features and examples. groupsGitolite allows you to group users or repos for convenience. Here's an example that creates two groups of users:
Group lists accumulate. The following two lines have the same effect as the earlier definition of @staff above:
You can also use group names in other group names:
Finally, @all is a special group name that is often convenient to use if you really mean "all repos" or "all users". commandsUsers can run certain commands remotely, using ssh. Running
prints a list of available commands. The most commonly used command is "info". All commands respond to a single argument of "-h" with suitable information. If you have shell on the server, you have a lot more commands available to you; try running "gitolite help". LICENSEcontact and supportPlease see http://gitolite.com/gitolite/#contactsupport for mailing list and IRC info. licenseThe gitolite software is copyright Sitaram Chamarty and is licensed under the GPL v2; please see the file called COPYING in the source distribution. Please see http://gitolite.com/gitolite/#license for more.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论