What Is Git & Why Should You Use It?
Master Version Control for Professional Development Workflow
Git is a distributed version control system that tracks changes in files and enables collaboration among developers. It's essential for modern software development workflows.
Command Line vs GUI Interface
| Feature | Command Line | GUI (Sourcetree) |
|---|---|---|
| Learning Curve | Steeper | Gentler |
| Speed | Faster | Moderate |
| Visual Feedback | Text-based | Graphical |
| Advanced Features | Full Access | Limited |
Creating Your First Git Repository
Choose Your Project Folder
Navigate to any ordinary folder containing your project files, such as a website's root directory
Initialize Git
Tell Git to make it a repository, which creates a hidden .git subfolder with all tracking metadata
Verify Setup
The .git folder contains all Git metadata for tracking changes and is hidden on Unix-based systems like macOS
Git Workflow Concepts
Staging Area
A holding area where you prepare files before committing. Use the add command to stage specific files you want to include in your next commit.
Commit
A recorded change to a file or set of files. Each commit represents a snapshot of your project at a specific point in time.
Selective Commits
Stage only the files that are ready while continuing work on others. This gives you precise control over what changes get recorded together.
Staging allows you to commit only the files that are ready, even when working on multiple files simultaneously. This creates cleaner, more logical commit history.
Working with Remote Repositories
Set Up Remote Host
Create a repository on GitHub or Bitbucket to serve as your centrally located collaboration hub
Push Your Changes
Upload your files and complete revision history to the remote repository for others to access
Pull Others' Changes
Download changes made by other developers from the remote repo into your local repository
Remote Repository Benefits
Centralized Collaboration
Provides a single location where team members can share code changes and stay synchronized with the latest project updates.
Backup & Recovery
Stores your complete project history online, protecting against local data loss and enabling recovery from any point in development.
Real-World Branching Scenario
Create Feature Branch
Start working on a new website feature in isolation from main code
Rush Change Request
Switch back to master branch to handle urgent live site change
Deploy Rush Change
Push critical change live while feature work remains in progress
Complete Feature
Return to feature branch and finish development work
Merge to Master
Combine feature branch with master, keeping both changes intact
When multiple developers work on the same file section, Git provides tools to view both sets of changes and decide which to keep, ensuring no work is lost.
Pull Request Workflow
Developer Creates Branch
Team member makes changes on a new branch separate from the master branch
Submit Pull Request
Developer creates a pull request to notify project manager of proposed changes for review
Code Review & Discussion
Team discusses the changes, suggests improvements, and evaluates impact before merging
Merge Decision
Project manager decides whether to accept and merge the changes into the main codebase
Git Learning Opportunities
Git Going: An Intro to Git
Comprehensive hands-on class available in NYC or live online format. Learn practical Git skills through interactive exercises and real-world scenarios.
Certificate Programs
Git training is integrated into Front-End Web Development, Full-Stack Web Development, and other web development certificate programs for comprehensive learning.
Git transforms development workflow by providing version control, collaboration tools, and project history tracking. Master these fundamentals to advance your development career.
Key Takeaways
RELATED ARTICLES
Collecting Content for Your Design Portfolio from Day One
As a designer at any level, your portfolio is a most valuable asset. It represents what you can do, the methods you can apply to implement stakeholder...
Leverage LinkedIn and Glassdoor
In today’s world, job seekers and employers connect through online job boards and networks. Job boards and online job networks overlap but are not the same...
Creating Your Design Portfolio Website
Once you have assembled your design portfolio content, the remaining piece of the puzzle is to find a place to post it for review online. Let’s quickly run...


