配置gitosis for mac osx and ubuntu
2013-12-05 21:14
190 查看
Client side | server side
1.Create "git" accoutMac:
Finder/System preferences/User and Groups/
Linux:
$ sudo useradd -s /bin/bash -mr git
$ sudo adduser git sudo
$ sudo passwd git
2.Download and setup gitolite
Mac & Linux:
$ git clone git://github.com/ossxp-com/gitolite.git
$ cd gitolite/src
$ ./gl-easy-install git server admin
3. Generate ssh key and copy .pub to git account
$ ssh-keygen -t rsa
$ scp ~/.ssh/id_rsa.pub git@ip:~
4. Init gitosis using step3 ssh pub key
$ sudo -H -u git gitosis-init < /tmp/yourname.pub
$ cd ~/.ssh
$delete "command="gitosis-serve yourname",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty " in authorized_keys file
$ sudo chmod 755 /Users/git/repositories/gitosis-admin.git/hooks/post-update (mac)
5 set the git path to PATH env
$ touch ~/.bashrc
$ echo PATH=/usr/local/bin:/usr/local/git/bin:\$PATH > .bashrc
$ echo export PATH >> .bashrc
6. Manage gitosis
$ git clone git@192.168.1.100:repositories/gitosis-admin.git
$ add user in keydir and project member's in gitosis.conf
相关文章推荐
- [图文详解] Sublime Text在Windows/Ubuntu/Mac OSX中配置使用CTags
- Set up SSH for Git and Mercurial on Mac OSX/Linux
- Sublime2 for Mac OSX配置(Python developer)
- Mac 用RVM配置ruby环境的时候出现错误No binary rubies available for: osx/10.11/x86_64/ruby-2.2.2.
- Redis Desktop Manager - Redis GUI management tool for Windows, Mac OS X, Ubuntu and Debian.
- Sublime Text在Windows/Ubuntu/Mac OSX中配置使用CTags
- ubuntu14.04 mac主题安装配置图文详解
- Mac环境下配置andrion环境变量-RectNative引发的问题
- WIRELESS MAC AND PHY SPECIFICATIONS FOR WPANS
- A Unique Linux Backup to Live Media Tool for Debianand Ubuntu
- Turn Your Ubuntu Hardy to Mac OSX Leopard
- Build ffplay and ffmpeg 2.6.2 on Mac OSX 10.10.2
- xampp for mac安装配置
- boost and boost::regex for linux(Ubuntu) 编译and安装_二少_新浪博客
- Mac OSX操作系统安装和配置Zend Server 6教程(1)
- Sublime Text 3 for Python andweb developers配置开发环境
- WPS for Linux字体配置(Ubuntu 16.04)
- QT环境配置及运行 - For Windows and S60
- Ruby2.3.1安装 for win centos Ubuntu Mac