-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
672 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Gitea support | ||
|
||
GCM requires Gitea v1.18 or later. | ||
|
||
## Config for a custom instance | ||
|
||
1. In Settings / Applications, create an OAuth application, unchecking the | ||
*Confidential* option (if this option is missing, the version of Gitea is too | ||
old) | ||
1. Copy the application ID and configure | ||
`git config --global credential.https://gitea.example.com.GiteaDevClientId <APPLICATION_ID>` | ||
1. Copy the application secret and configure | ||
`git config --global credential.https://gitea.example.com.GiteaDevClientSecret | ||
<APPLICATION_SECRET>` | ||
1. Configure authentication modes to include 'browser' | ||
`git config --global credential.https://gitea.example.com.GiteaAuthModes browser` | ||
1. For good measure, configure | ||
`git config --global credential.https://gitea.example.com.provider gitea`. | ||
This may be necessary to recognise the domain as a Gitea instance. | ||
1. Verify the config is as expected | ||
`git config --global --get-urlmatch credential https://gitea.example.com` | ||
|
||
## Clearing config | ||
|
||
### Clearing config | ||
|
||
```console | ||
git config --global --unset-all credential.https://gitea.example.com.GiteaDevClientId | ||
git config --global --unset-all credential.https://gitea.example.com.GiteaDevClientSecret | ||
git config --global --unset-all credential.https://gitea.example.com.provider | ||
``` | ||
|
||
## Preferences | ||
|
||
```console | ||
Select an authentication method for 'https://gitea.com/': | ||
1. Web browser (default) | ||
2. Personal access token | ||
3. Username/password | ||
option (enter for default): | ||
``` | ||
|
||
If you have a preferred authentication mode, you can specify | ||
[credential.giteaAuthModes][config-gitea-auth-modes]: | ||
|
||
```console | ||
git config --global credential.giteaauthmodes browser | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0</TargetFrameworks> | ||
<TargetFrameworks Condition="'$(OSPlatform)'=='windows'">netstandard2.0;net472</TargetFrameworks> | ||
<AssemblyName>Gitea</AssemblyName> | ||
<RootNamespace>Gitea</RootNamespace> | ||
<IsTestProject>false</IsTestProject> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Core\Core.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'net472'"> | ||
<Reference Include="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.