Gitolite: Difference between revisions
m (Moved current gitolite setup as a subsection of a manual setup since alpine now has the gitolite package) |
mNo edit summary |
||
Line 1: | Line 1: | ||
== Manual Setup == | == Manual Setup == | ||
The installation of [http://sitaramc.github.com/gitolite/ | The installation of [http://sitaramc.github.com/gitolite/ Gitolite] is relatively easy on Alpine Linux. Below 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|apk add perl bash git nano}} | ||
Line 7: | Line 7: | ||
# {{Cmd|su - git}} | # {{Cmd|su - git}} | ||
# On your local machine make a ssh key {{Cmd|ssh-keygen -t myname.pub}} | # On your local machine make a ssh key {{Cmd|ssh-keygen -t myname.pub}} | ||
# Next run {{Cmd|scp ~/.ssh/myname.pub git@example.com:myname.pub}} on your local machine | # Next, run {{Cmd|scp ~/.ssh/myname.pub git@example.com:myname.pub}} on your local machine | ||
# On the remote machine type {{Cmd|git clone git://github.com/sitaramc/gitolite}} | # On the remote machine type {{Cmd|git clone git://github.com/sitaramc/gitolite}} | ||
# {{Cmd|gitolite/src/gl-system-install}} | # {{Cmd|gitolite/src/gl-system-install}} | ||
# | # You will receive an error message. To fix this, add the path it gives you in a new file called <code>.bash_profile</code>. | ||
# | # {{Cmd|nano /home/git/.bash_profile}} | ||
# | # Add the line and save - ''Ctrl+X''. | ||
# Logout and then log back into the git user | |||
# {{Cmd|gl-setup myname.pub}} | # {{Cmd|gl-setup myname.pub}} | ||
# | # 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, commit them, and push them back to the server. | ||
I'm a brand new Alpine user and was able to get it working using the above instructions. Hope this will help someone else! | |||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Git]] | [[Category:Git]] |
Revision as of 23:01, 16 September 2017
Manual Setup
The installation of Gitolite is relatively easy on Alpine Linux. Below 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 this, 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 log 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, commit them, and push them back to the server.
I'm a brand new Alpine user and was able to get it working using the above instructions. Hope this will help someone else!