0667.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Host Your Own GitHub Alternative with Gitea on Windows</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Gitea,Windows,GitHub Alternatives,Microsoft,Powershell,Source Control,Git,Gitea Tutorial,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Host Your Own GitHub Alternative with Gitea on Windows">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Host Your Own GitHub Alternative with Gitea on Windows</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>What is Gitea?</h2>
  25. <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>
  26. <h2>Installing Gitea</h2>
  27. <ol>
  28. <li>Open a browser and navigate to https://dl.gitea.io/gitea</li>
  29. <li>Open the folder for the latest release</li>
  30. <li>Download the latest windows .exe release</li>
  31. <li>Download Git for Windows <a href="https://github.com/git-for-windows/git/releases/latest" target="_blank">Download</a></li>
  32. <li>Install Git for Windows</li>
  33. <li>Rename the downloaded gitea .exe file gitea.exe</li>
  34. <li>Copy/cut gitea.exe</li>
  35. <li>Navigate to C:\Program Files and create a new folder called gitea</li>
  36. <li>Paste gitea.exe inside the new gitea folder</li>
  37. <li>Hold SHIFT and right click in the white space &gt; Open PowerShell window here...</li>
  38. <li>Run the following commands in the PowerShell window
  39. <div class="codeBlock PS"># create subdirectories<br />
  40. $(New-Item -Force -Type Directory &#39;.\data&#39;)<br />
  41. $(New-Item -Force -Type Directory &#39;.\log&#39;)<br />
  42. # create basic ini configuration<br />
  43. &quot;RUN_USER = $ENV:ComputerName`$`r`nAPP_NAME = Git`r`nRUN_MODE = prod`r`n`r`n[ui]`r`nDEFAULT_THEME = arc-green&quot; | Out-File -Encoding utf8 -FilePath &quot;$(New-Item -Force -Type Directory &#39;C:\Program Files\gitea\custom\conf&#39;)\app.ini&quot;<br />
  44. # run gitea as a service<br />
  45. New-Service -Name &quot;Gitea&quot; -BinaryPathName &#39;&quot;C:\Program Files\gitea\gitea.exe&quot; web --config &quot;C:\Program Files\gitea\custom\conf\app.ini&quot;&#39; -StartupType &quot;Automatic&quot; -Description &quot;Gitea&quot;<br />
  46. # start the gitea service<br />
  47. Start-Service &quot;Gitea&quot;</div>
  48. </li>
  49. </ol>
  50. <h2>Initial Configuration</h2>
  51. <ol>
  52. <li>Open a web browser and navigate to http://DNSorIP:3000</li>
  53. <li>Set the database type to SQLite3 on the Initial Configuration screen &gt; Click the Install Gitea button</li>
  54. <li>Click the Register Now link</li>
  55. <li>Enter a username, email and password &gt; Click the Register Account button</li>
  56. <li>Welcome to Gitea</li>
  57. </ol>
  58. <p>Documentation: <a href="https://docs.gitea.io/en-us/windows-service/" target="_blank">https://docs.gitea.io/en-us/windows-service/</a></p>
  59. </div>
  60. </div>
  61. </body>
  62. </html>