Skip to content

Git Workflow

Git is a distributed version control system.

Hosting Services

Mogan is available on:

PlatformLinkOrganization or CompanyLocation
Gitlabhttps://git.lug.ustc.edu.cn/XmacsLabs/moganUSTC LUGChina
Codeberghttps://codeberg.org/XmacsLabs/moganCodeberg e.V.Germany
Giteehttps://gitee.com/XmacsLabs/mogan深圳市奥思网络科技有限公司China
Githubhttps://github.com/XmacsLabs/moganGithub, Inc.US

We receives issues and pull requests from the git hosting services listed above.

If you hope to add your favorite Git hosting service, please contact us:

  • For hosting services owned by commercial company, we hope to choose the most popular one for each country
  • For hosting services owned by organization like university, the more the better. We hope the employees or students of those oganizations can comtribute to Mogan without leaking their own privacy to commercial companies.

The Git workflow for different hosting services is different. There are described below.

Workflow on Gitee

Clone and add the Gitee remote:

git clone git@gitee.com:XmacsLabs/mogan.git
cd mogan

git remote add gitee git@gitee.com:XmacsLabs/mogan.git

Create a pull request, see Gitee Official Doc:

git checkout -b [branch-name]
# coding and `git commit`
git push gitee [branch-name]:main

Just push to the main branch, and the pull request will be created automatically.

Workflow on Github/GitLab/Gitea

Add the Github remote:

git remote add github git@github.com:XmacsLabs/mogan.git

Create a pull request, see Github Official Doc for a detailed instruction:

git checkout -b [branch-name]
# coding and `git commit`
git push github [branch-name]
# manually create the github pull request

Why are you using multiple Git hosting services?

Because we do not want to stick to one Git hosting service. And we hope to receive more feedbacks and contributions from users and developers.

And Mogan is a libre software. We are willing to pay extra efforts to deliver the source code of Mogan to everyone on Earth (also on Mars in 50 years?).

How to sync between multiple Git hosting services?

Currently, the admins of the Mogan project will sync manually.

Enjoy exploring science and technology!