iHub Resources
Getting Started with Git — Version Control Made Easy
Getting Started with Git — Version Control Made Easy
Introduction
Whether you’re working on a solo project or collaborating with a team, Git helps you track changes, manage versions, and collaborate efficiently. It’s the tool behind platforms like GitHub and GitLab — and it’s essential for every developer or innovator managing code and project files.
This guide walks you through installing Git, setting up your first repository, and pushing code to GitHub — even if you’ve never used Git before.
1. Installing Git
Windows
-
Visit git-scm.com
-
Download the Windows installer.
-
Run it, and select:
-
“Use Git from the Windows Command Prompt.”
-
“Checkout Windows-style, commit Unix-style line endings.”
-
-
Complete the setup and restart your terminal.
macOS / Linux
Use your terminal:
or
Verify installation:
2. Configuring Git
Set your name and email — this information appears in every commit:
3. Creating Your First Repository
Navigate to your project folder:
Initialize Git:
This creates a hidden .git folder that tracks all changes.
Add files and make your first commit:
4. Connecting to GitHub
-
Create a new repository on GitHub.
-
Copy the HTTPS link.
-
Connect it to your local repo:
Your code is now safely backed up and version-controlled!
Summary
You’ve just taken your first step into version control. Whether you’re developing an app, writing research code, or collaborating on an innovation project at the Hub, Git ensures your progress is tracked and your teamwork is seamless.
