Welcome to the Morehouse Tech Collective GitHub Tutorial Project!
This activity will teach you the basics of Git and GitHub by having you:
- Clone a public repository
- Edit code and commit changes
- Create your own branch
- Submit a Pull Request (PR) to contribute your version
hello_aren/
├── main.cpp      # Source code (defines your name and color)
├── colors.h      # Header file with all color constants
└── README.md     # This documentation file
Clone Aren’s original repo to your local computer:
git clone https://github.com/AJEgwu/GitTutorial.git
cd GitTutorialMake a new branch named after your own name:
git checkout -b your-name🧠 Example:
git checkout -b aren-egwuekweOpen main.cpp and edit these constants near the top:
const std::string NAME  = "Aren";  // <-- Change this to your name
const std::string COLOR = RED;     // <-- Change this to another color if you'd like✅ The available colors are defined in colors.h (RED, GREEN, BLUE, YELLOW, etc.).
g++ main.cpp -o hello./helloYou should see your personalized output, for example:
Hello Jordan!
(in the color you selected)
git add .
git commit -m "Updated name and color to [Your Name]"🧠 Example:
git commit -m "Updated name and color to Jordan Brown"git push origin your-name🧠 Example:
git push origin aren-egwuekwe- 
Go to the original repo on GitHub: 👉 https://github.com/AJEgwu/GitTutorial/ 
- 
You’ll see a message suggesting you compare & pull request your branch. Click “Compare & pull request.” 
- 
Add a short message like: “Added my name and color for the MTC Git Tutorial.” 
- 
Click “Create pull request.” 
✅ Once approved, your contribution will appear in the main repo!
| Constant | Color | Example | 
|---|---|---|
| RED | 🔴 | "Hello [Name]!" | 
| GREEN | 🟢 | "Hello [Name]!" | 
| BLUE | 🔵 | "Hello [Name]!" | 
| YELLOW | 🟡 | "Hello [Name]!" | 
| MAGENTA | 🟣 | "Hello [Name]!" | 
| CYAN | 🟦 | "Hello [Name]!" | 
| WHITE | ⚪ | "Hello [Name]!" | 
| RESET | ⚫ | Restores normal text color | 
| Step | Command | Purpose | 
|---|---|---|
| 1️⃣ | git clone https://github.com/AJEgwu/GitTutorial.git | Clone the repo | 
| 2️⃣ | git checkout -b your-name | Create your branch | 
| 3️⃣ | git add . | Stage changes | 
| 4️⃣ | git commit -m "message" | Save changes | 
| 5️⃣ | git push origin your-name | Push to GitHub | 
| 6️⃣ | (On GitHub) | Create Pull Request | 
This exercise helps you:
- Learn the Git workflow (clone → branch → commit → push → pull request)
- Practice making meaningful commits
- Understand how to contribute to a shared repository
Created for the Morehouse Tech Collective GitHub Workshop 🖥️ Instructor: Aren Egwuekwe 🔗 https://github.com/AJEgwu/GitTutorial/