Use of the system is Ubuntu, so there are a lot of apt-get commands, haha forgive
- Install git Git-core
- Create a new Git user, and the user's home directory will be used to store git Repository. This user name is not necessarily called git, can be arbitrarily specified, but git is more commonly used, a look at the role of this account
- Modify the password
- Landing
sudo install git git-coreadduser gitpasswd gitsu git
The above is a git installation
- Get Gitolite
- If Python does not install Python
- Installing Python-setuptools
- Initializing Gitolite with Public key
git clone https://github.com/sitaramc/gitolitesudoinstall python python- Setuptoolsgitolite/Install -ln
The above is Gitolite configuration
So we're done with the GIT server. The public key is generated by this command
Ssh-keygen -t RSA
See/gitolite/config file
[core]repositoryformatversion = 0filemode = Truebare = True[user]email = [email protected]name = git on Zzb-virtualbox
Now, test it.
- Switch to User
- Clone down Gitolite-admin
su usergit Clone [email protected]:repositories/gitolite-admin.git
View./config/gitolite.conf file
Repo gitolite-admin rw+ = Zzbrepo testing rw+ = @all
At this point, the Gitolite configuration is OK
"Build git+maven+jenkins Continuous integration Environment" [a] build a git server