From lathama
Jump to: navigation, search

Tips and Howto


Sadly there are too many ways to squash in Git now. Old method from my personal notes is:

Select the last few commits you want to join as one
git rebase -i HEAD~3
In the editor that started select the commits you wish to squash by using the word squash and save. Then you can push.
git push origin

Github account


Install and note the version in this example is 1.3.2 and maybe some day there will be a stable branch/tag.

adduser git
su git
cd /home/git
mkdir gitea
wget -O gitea
chmod +x gitea

Use for


Apache Proxy via

 <Proxy *>
  Order allow,deny
  Allow from all
 ProxyPreserveHost On
 ProxyRequests off
 ProxyPass /git
 ProxyPassReverse /git

In /home/git/gitea/custom/config/app.ini limit to localhost like:

PROTOCOL         = http
DOMAIN           =
HTTP_ADDR        =
HTTP_PORT        = 3000
ROOT_URL         =

In the app.ini you can set many things like and example at eg

APP_NAME = Lathama Git Server

Then we just need to enable and start/restart services. (I use restart a lot in the case I had already started it.)

systemctl reload apache2
systemctl enable gitea
systemctl restart gitea

Sponsorship and Advertising space here. Please contact me if interested.