Skip to content

mainiak/move2gogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move to Gogs

Install

go get -u -v github.com/mainiak/move2gogs
go build github.com/mainiak/move2gogs
go install github.com/mainiak/move2gogs

Usage

How to obtain API token

Login into your Gogs instance. Go to Your Settings under your User avatar menu. Select Applications and click on Generate New Token.

Define proper server URI

Server URI/URL should contain protocol as well. Using HTTPS whenever possible is strongly recommended.

move2gogs --server https://foo.example.com

Mirror local repository

Without project name specified tool will use git directory name by default. In following example it will be repo-xyz.

move2gogs --server server-uri --token-file file-with-token --repo /path/to/repo-xyz

Or you can specify project name as you can see in following example.

move2gogs --server server-uri --token-file file-with-token --repo /path/to/repo-xyz --project foobar

Use organizations

You can create organization with following example:

move2gogs --server server-uri --token-file file-with-token --create-org --org someorg

And then use organization in another command:

move2gogs --server server-uri --token-file file-with-token --org someorg --repo /path/to/repo-xyz

About

Golang client to ease moving repositories to Gogs server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published