Gitea & Github

1) Setup private Gitea repository (name: origin)
.. and push current branch there (default branch is “master”):

git remote add origin https://gitea-url/test.git
git push -u origin master

2) Add a new branch publish

git branch publish
git checkout publish

3) Setup public Github repository (name: public)
.. and push branch “publish” to this repository called “public” (careful: default branch is “main” on github, whereas “master” on Gitea).

git remote add public
git push -u public publish

For changes merger master to “publish branch”:

git checkout publish
git merge master

push “publish branch” to github:

git push -u public publish

Merge branch “publish” with master on github.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.