🚀 How to Set Up a New GitHub Repo & Push Go Code (Step-by-Step Guide)
Learn how to:
Create a local Git repository
Configure a custom GitHub account for one project
Write and run a Hello World in Go
Push your code to GitHub in minutes!
📝 What You'll Learn:
✅ Install Git & Go
✅ Initialize a new project
✅ Set up local Git config for a specific repo
✅ Create and run your first Go program
✅ Create a GitHub repo and connect it
✅ Push your code and verify on GitHub
💻 Key Commands:
```bash
git init
git config --local user.name "YourName"
git config --local user.email "[email protected]"
go run main.go
git remote add origin "your-repo-url"
git push -u origin main
```
🎯 Why This Matters:
Keep work and personal GitHub accounts separate
Share your code with the world
Essential workflow for every developer
🔗 Resources:
[Git Downloads](https://git-scm.com/downloads)
[Go Downloads](https://go.dev/dl/)
[GitHub](https://github.com)
💬 Comment Below:
What project are you pushing to GitHub today?
Any questions about Git or Go? Drop them below!