Gitolite: Difference between revisions
m (add a link that explains what gitolite is) |
(Use the Cmd wiki macro) |
||
Line 1: | Line 1: | ||
The installation of [http://sitaramc.github.com/gitolite/ gitolite] is relatively easy on alpine Linux. Bellow is the method to install gitolite on a user account. | The installation of [http://sitaramc.github.com/gitolite/ gitolite] is relatively easy on alpine Linux. Bellow is the method to install gitolite on a user account. | ||
# Log into root user | # Log into root user | ||
# | # {{Cmd|apk add perl bash git nano}} | ||
# {{Cmd|adduser -s /bin/bash -S git}} | |||
# {{Cmd|su - git}} | |||
# On your local machine make a ssh key {{Cmd|ssh-keygen -t myname.pub}} | |||
# adduser -s /bin/bash -S | # Next run {{Cmd|scp ~/.ssh/myname.pub git@example.com:myname.pub}} on your local machine | ||
# su - git | # On the remote machine type {{Cmd|git clone git://github.com/sitaramc/gitolite}} | ||
# On your local machine make a ssh key | # {{Cmd|gitolite/src/gl-system-install}} | ||
# Next run | # you will receive an error message, to fix add the path it gives you in a new file called .bash_profile. {{Cmd|nano /home/git/.bash_profile}} | ||
# On the remote machine type | |||
# gitolite/src/gl-system-install | |||
# you will receive an error message, to fix add the path it gives you in a new file called .bash_profile. | |||
# add the line and save Ctrl+X | # add the line and save Ctrl+X | ||
# logout and then back into the git user | # logout and then back into the git user | ||
# | # {{Cmd|gl-setup myname.pub}} | ||
# on your local machine you can now | # on your local machine you can now {{Cmd|git clone git@example.com:gitolite-admin}} | ||
# on your local machine you can now edit your config files then commit them and push them back to the server | # on your local machine you can now edit your config files then commit them and push them back to the server | ||
Im a brand new alpine user and was able to get it working using the above instructions, hope this will help someone else! | Im a brand new alpine user and was able to get it working using the above instructions, hope this will help someone else! |
Revision as of 01:24, 20 April 2012
The installation of gitolite is relatively easy on alpine Linux. Bellow is the method to install gitolite on a user account.
- Log into root user
apk add perl bash git nano
adduser -s /bin/bash -S git
su - git
- On your local machine make a ssh key
ssh-keygen -t myname.pub
- Next run
scp ~/.ssh/myname.pub git@example.com:myname.pub
on your local machine - On the remote machine type
git clone git://github.com/sitaramc/gitolite
gitolite/src/gl-system-install
- you will receive an error message, to fix add the path it gives you in a new file called .bash_profile.
nano /home/git/.bash_profile
- add the line and save Ctrl+X
- logout and then back into the git user
gl-setup myname.pub
- on your local machine you can now
git clone git@example.com:gitolite-admin
- on your local machine you can now edit your config files then commit them and push them back to the server
Im a brand new alpine user and was able to get it working using the above instructions, hope this will help someone else!