codex-lv2-may-2025

GitHub Advanced – Direct Links to Software Carpentry Lessons

Advanced Git and GitHub concepts for students who have completed the basics. This lesson provides direct links to the official Software Carpentry Version Control with Git lessons covering history exploration, file management, and remote repositories.

This tutorial is based on the resources at Software Carpentry’s Version Control with Git

Prerequisites

Before starting these lessons, make sure you have:

Lesson Structure

1. Exploring History

Learn how to explore and understand your Git repository’s history.

2. Ignoring Things

Learn how to tell Git which files to ignore and why this is important.

3. Remotes in GitHub

Learn how to connect your local repository to GitHub and work with remote repositories.

Additional Resources

Practice Activities

After completing each lesson, try these hands-on activities:

  1. Explore Repository History
    • Use git log to view commit history
    • Practice using git diff to compare versions
    • Try reverting changes with git checkout
  2. Set Up .gitignore
    • Create a .gitignore file for your project
    • Add common patterns (node_modules, .DS_Store, etc.)
    • Test that ignored files are not tracked
  3. Work with GitHub
    • Create a new repository on GitHub
    • Connect your local repository to GitHub
    • Push your changes and pull from remote

Advanced Concepts Covered

Getting Help

Next Steps

After completing these lessons, you’ll be ready for:


This lesson structure provides direct access to advanced Software Carpentry Git lessons while building on the foundation established in the basic lessons.