you need to self-host Github RIGHT NOW!!
Get your own home lab in the cloud with a Hostinger VPS, and use code NETWORKCHUCK for an extra discount: https://ntck.co/hostinger-gitea
When GitHub goes down, your work goes down with it, and Microsoft holds your code. So I self-host my own GitHub with Gitea, a free, open source Git server that looks and works a lot like GitHub, and I've been running it for six months. In this video I set it up from scratch on a Hostinger VPS, push my Git Good repo from the Git video into it, then give my AI agent its own account and connect Claude Code through the official Gitea MCP server so it can work issues and open pull requests on a server I own. Then I do the same thing with a local AI model running on my own computer, mirror everything to GitHub so it can still be public, and lock the server down. In this video you'll learn how to install Gitea with Docker Compose, get free HTTPS from Let's Encrypt, the two setup page settings you must change, how to make Gitea your Git remote, how to give an AI agent its own account and connect it with MCP, how to run the same loop with Gemma 4 through Ollama, how to push mirror Gitea to GitHub, and how to lock down a VPS with SSH keys only, a ufw firewall and two-factor authentication.
Join the NetworkChuck Academy!: https://ntck.co/NCAcademy
RESOURCES / LINKS:
? The written guide for this video (every command in order, plus Windows commands, a home lab version, and backups): https://github.com/theNetworkChuck/gitea-guide
?️ Hostinger VPS (code NETWORKCHUCK): https://ntck.co/hostinger-gitea
? Gitea: https://about.gitea.com
? Install Gitea with Docker (the official compose file): https://docs.gitea.com/installation/install-with-docker
?️ Gitea MCP server: https://gitea.com/gitea/gitea-mcp
?️ Install Docker on Ubuntu: https://docs.docker.com/engine/install/ubuntu/
?️ Ollama (local AI): https://ollama.com
? The Git guide (part one of this series): https://github.com/theNetworkChuck/git-guide
? Learn Docker: https://youtu.be/eGz9DS-aIeY
? Learn Docker Compose: https://youtu.be/DM65_JyGxCo
COMMANDS (the full list is in the guide):
Start Gitea: docker compose up -d
Make an SSH key: ssh-keygen -t ed25519
Check Gitea knows your key: ssh -T -p 222 git@YOUR-SERVER
Move GitHub out of the way: git remote rename origin github
Make Gitea your remote: git remote add origin ssh://git@YOUR-SERVER:222/YOUR-USERNAME/git-good.git
Push your code: git push -u origin main
Claude Code on a local model: ollama launch claude --model gemma4:31b
Copy your SSH key to the server (Mac and Linux): ssh-copy-id root@YOUR-SERVER
Copy your SSH key to the server (Windows PowerShell): type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@YOUR-SERVER "mkdir -p ~/.ssh && tee -a ~/.ssh/authorized_keys"
SSH keys only: the three-line lockdown file is in the guide, then sshd -t && systemctl reload ssh
Firewall: ufw limit 22/tcp, then ufw allow 80,443,222/tcp, then ufw enable
TIMESTAMPS:
0:00 - Why you need to self-host GitHub right now
2:26 - Getting a Hostinger VPS (Sponsor)
3:48 - Installing Gitea with Docker
8:40 - Pushing your code to your own Git server
13:31 - Your AI agent works your issues (cloud and local)
18:46 - Mirroring Gitea to GitHub
21:33 - Locking it all down
24:20 - Should you self-host your Git? (and a prayer)
**Sponsored by Hostinger
SUPPORT NETWORKCHUCK:
☕☕ COFFEE and MERCH: https://ntck.co/coffee
READY TO LEARN??
??Join the NetworkChuck Academy!: https://ntck.co/NCAcademy
? CCNA Course: https://ntck.co/ccna
FOLLOW ME EVERYWHERE:
Instagram: https://www.instagram.com/networkchuck/
X/Twitter: https://x.com/networkchuck
Facebook: https://www.facebook.com/NetworkChuck/
Join the Discord server: https://ntck.co/discord
Some links in this description are affiliate links. If you buy through them, I may earn a small commission at no extra cost to you. #sponsored
#gitea #selfhosted #github
NetworkChuck
Welcome to NetworkChuck! I LOVE Information Technology!! My goal is to help as MANY PEOPLE AS POSSIBLE jump into a career in the IT field through obtaining IT Certifications. I talk about Cisco Certifications, CompTIA, AWS, Microsoft...pretty much EVERYT...