mirror of https://github.com/go-gitea/gitea.git
Gitea with first upper case + typos (#30739)
* Corrected gitea to Gitea * fixed some typos
This commit is contained in:
parent
daf841fe14
commit
81a0a031f5
|
@ -58,7 +58,7 @@ The repository now gets mirrored periodically to the remote repository. You can
|
||||||
|
|
||||||
To set up a mirror from Gitea to GitHub, you need to follow these steps:
|
To set up a mirror from Gitea to GitHub, you need to follow these steps:
|
||||||
|
|
||||||
1. Create a [GitHub personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with the *public_repo* box checked. Also check the **workflow** checkbox in case your repo using act for continuous integration.
|
1. Create a [GitHub personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with the *public_repo* box checked. Also check the **workflow** checkbox in case your repo uses GitHub Actions for continuous integration.
|
||||||
2. Create a repository with that name on GitHub. Unlike Gitea, GitHub does not support creating repositories by pushing to the remote. You can also use an existing remote repo if it has the same commit history as your Gitea repo.
|
2. Create a repository with that name on GitHub. Unlike Gitea, GitHub does not support creating repositories by pushing to the remote. You can also use an existing remote repo if it has the same commit history as your Gitea repo.
|
||||||
3. In the settings of your Gitea repo, fill in the **Git Remote Repository URL**: `https://github.com/<your_github_group>/<your_github_project>.git`.
|
3. In the settings of your Gitea repo, fill in the **Git Remote Repository URL**: `https://github.com/<your_github_group>/<your_github_project>.git`.
|
||||||
4. Fill in the **Authorization** fields with your GitHub username and the personal access token as **Password**.
|
4. Fill in the **Authorization** fields with your GitHub username and the personal access token as **Password**.
|
||||||
|
@ -91,10 +91,10 @@ The repository pushes shortly thereafter. To force a push, select the **Synchron
|
||||||
|
|
||||||
### Mirror an existing ssh repository
|
### Mirror an existing ssh repository
|
||||||
|
|
||||||
Currently gitea supports no ssh push mirrors. You can work around this by adding a `post-receive` hook to your gitea repository that pushes manually.
|
Currently Gitea supports no ssh push mirrors. You can work around this by adding a `post-receive` hook to your Gitea repository that pushes manually.
|
||||||
|
|
||||||
1. Make sure the user running gitea has access to the git repo you are trying to mirror to from shell.
|
1. Make sure the user running Gitea has access to the git repo you are trying to mirror to from shell.
|
||||||
2. On the Webinterface at the repository settings > git hooks add a post-receive hook for the mirror. I.e.
|
2. On the web interface at the repository settings > git hooks add a post-receive hook for the mirror. I.e.
|
||||||
|
|
||||||
```
|
```
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
Loading…
Reference in New Issue