Setup Gogs
How To Set Up Gogs on Ubuntu 14.04
Set Database
Gogs(Go Git Service)
https://dev.mysql.com/doc/refman/5.7/en/charset-database.html
https://github.com/gogits/gogs/blob/master/scripts/systemd/gogs.service
https://gogs.io/docs/intro/faqs
Path for older MySQL
fixed Error MySql /Mariadb error: max key length is 767 byte
v0.11.34_patch
Other solution
Upgrade mariadb version to 10.2 or higher.
Upgrade mysql version to 5.7 or higher.
Settings file Path
1 | /opt/gogs/custom/conf/app.ini |
Transfer repositories to Gogs
The clone bare brings down all refs/tags/etc, and the push –mirror pushes everything back up.1
2
3
4git clone --bare git@github.com:old/repo.git
cd repo
git remote add origin git@github.com:new/repo.git
git push --mirror
Resource
See Second Comment
Moving A Git Repository To A New Server
install_url
to use ShareThis. Please set it in _config.yml
.