123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Host Your Own GitHub Alternative with Gitea on Windows</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Gitea,Windows,GitHub Alternatives,Microsoft,Powershell,Source Control,Git,Gitea Tutorial,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Host Your Own GitHub Alternative with Gitea on Windows">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Host Your Own GitHub Alternative with Gitea on Windows</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>What is Gitea?</h2>
- <blockquote><em>Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and GitLab. Gitea is a fork of Gogs. -<a href="https://docs.gitea.io/en-us/" target="_blank">https://docs.gitea.io/en-us/</a></em></blockquote>
- <h2>Installing Gitea</h2>
- <ol>
- <li>Open a browser and navigate to https://dl.gitea.io/gitea</li>
- <li>Open the folder for the latest release</li>
- <li>Download the latest windows .exe release</li>
- <li>Download Git for Windows <a href="https://github.com/git-for-windows/git/releases/latest" target="_blank">Download</a></li>
- <li>Install Git for Windows</li>
- <li>Rename the downloaded gitea .exe file gitea.exe</li>
- <li>Copy/cut gitea.exe</li>
- <li>Navigate to C:\Program Files and create a new folder called gitea</li>
- <li>Paste gitea.exe inside the new gitea folder</li>
- <li>Hold SHIFT and right click in the white space > Open PowerShell window here...</li>
- <li>Run the following commands in the PowerShell window
- <div class="codeBlock PS"># create subdirectories<br />
- $(New-Item -Force -Type Directory '.\data')<br />
- $(New-Item -Force -Type Directory '.\log')<br />
- # create basic ini configuration<br />
- "RUN_USER = $ENV:ComputerName`$`r`nAPP_NAME = Git`r`nRUN_MODE = prod`r`n`r`n[ui]`r`nDEFAULT_THEME = arc-green" | Out-File -Encoding utf8 -FilePath "$(New-Item -Force -Type Directory 'C:\Program Files\gitea\custom\conf')\app.ini"<br />
- # run gitea as a service<br />
- New-Service -Name "Gitea" -BinaryPathName '"C:\Program Files\gitea\gitea.exe" web --config "C:\Program Files\gitea\custom\conf\app.ini"' -StartupType "Automatic" -Description "Gitea"<br />
- # start the gitea service<br />
- Start-Service "Gitea"</div>
- </li>
- </ol>
- <h2>Initial Configuration</h2>
- <ol>
- <li>Open a web browser and navigate to http://DNSorIP:3000</li>
- <li>Set the database type to SQLite3 on the Initial Configuration screen > Click the Install Gitea button</li>
- <li>Click the Register Now link</li>
- <li>Enter a username, email and password > Click the Register Account button</li>
- <li>Welcome to Gitea</li>
- </ol>
- <p>Documentation: <a href="https://docs.gitea.io/en-us/windows-service/" target="_blank">https://docs.gitea.io/en-us/windows-service/</a></p>
- </div>
- </div>
- </body>
- </html>
-
|