Here are the clean and reduced instructions for cloning your local git repos into GOGS. This is probably pretty basic for some people, but a git wizard I am not.
- Convert your local repos into a bunch of bare repos:
mkdir bare-repos
cd bare-repos
git clone --bare --local /home/you/code/myfrivolousproject
# repeat until there are "frivolousproject.git" dirs for all your frivolous projects inside bare-repos - Convert them so we can use a dumb webserver:
cd frivproj1
git update-server-info -f # I'm not sure, but it seemed like I needed the -f
cd ../frivproj2
git update-server-info -f # also, thanks to this guy for this key step!
# etc... - Start a dumb webserver:
cd bare-repos
python -m SimpleHTTPServer - In GOGS, hover over the + at the top right, choose "New Migration", then enter "http://LOCALIPADDR:8000/myfrivproj1". You can figure out what to enter for the rest of the fields. Authentication is not needed. MAKE SURE you enter the actual IP of your client machine, and not localhost! I think I screw this up every time.
- If you screw up, you'll get an extremely unhelpful 500 page, and something like "repository not found" in the logs. Probably you forgot the update-server-info step, or started the webserver in the wrong directory. But if you somehow managed to make it all work right, you'll get dropped into your new GOGS project page!
- After you do this, you may want to add the git repo as the origin to your local checkout. cd to the checkout, and run git remote add origin $URL, where URL=the HTTPS link URL found in the gogs page project.
That took way too much work, I must be tired.