Skip to main content
Ctrl+K
Git for Academia 0.1.dev1+g7be866d documentation - Home
  • GitHub Discussion
  • Pages

About

  • About this Seminar
    • Schedule
    • Requirements
    • Presenters

Part 1: Working with Git

  • 1. - A Brief Introduction
    • 1.1. What is ?
    • 1.2. Main Features
      • 1.2.1. Tracking Techniques
      • 1.2.2. Tracking Features
      • 1.2.3. Content Distribution
      • 1.2.4. Distribution Techniques
      • 1.2.5. Distribution Features
      • 1.2.6. Managing Changes - Within
      • 1.2.7. Managing Changes - Between
      • 1.2.8. ’s Change Management Features
    • 1.3. Limitations
      • 1.3.1. Automatic Synchronization
      • 1.3.2. Functional Consistency
      • 1.3.3. Variety of Trackable Files
  • 2. - Basic Elements
    • 2.1. Commits
    • 2.2. Branches
    • 2.3. Tags
    • 2.4. HEAD
    • 2.5. Index/Staging Area
    • 2.6. Working Directory
    • 2.7. History
  • 3. .gitignore
    • 3.1. What is .gitignore?
    • 3.2. Pattern Syntax
    • 3.3. Best Practices
    • 3.4. Ignored ≠ untracked
    • 3.5. Why is this file ignored?
  • 4. - Elementary commands
    • 4.1. clone
    • 4.2. fetch
    • 4.3. merge
    • 4.4. rebase
    • 4.5. add
    • 4.6. commit
    • 4.7. push
    • 4.8. pull
  • 5. The Update Cycle
    • 5.1. 0.1/ 0
    • 5.2. 0.2/ 0
    • 5.3. 0.3/ 0
    • 5.4. 1/ 0
    • 5.5. 2/ 0
    • 5.6. 2.3/ 0.1
    • 5.7. 3/ 0.2
    • 5.8. 3/ 0.3 - merge
    • 5.9. 3/ 1 - merge
    • 5.10. 3/ 0.3 - rebase
    • 5.11. 3/ 1 - rebase
  • 6. - History
    • 6.1. How can we explore this history?
    • 6.2. The -Historian’s Toolset
      • 6.2.1. git log - What happened when/where?
      • 6.2.2. git diff - What changed between here and there?
      • 6.2.3. git show - What exactly changed at a specific point?
      • 6.2.4. git blame - When and who changed a specific line in a file?
      • 6.2.5. git reflog - What is “my history”, i.e. what was I doing?
    • 6.3. (How) can we alter history?
    • 6.4. The -Editors’s Toolset
      • 6.4.1. git revert - How to "git undo"?
      • 6.4.2. git reset - How to step back and take a different turn?
      • 6.4.3. git rebase - How to consolidate and clean-up?
      • 6.4.4. git-filter-repo - How to remove sensitive data?
      • 6.4.5. When is it fine to change history?
  • 7. Collaboration Principles
    • 7.1. Healthy Reference
      • 7.1.1. Best Practice (1/4)
    • 7.2. Separate Changes
      • 7.2.1. Best Practice (2/4)
    • 7.3. Meaningful Steps
      • 7.3.1. Best Practice (3/4)
    • 7.4. Flag States
      • 7.4.1. Best Practice (4/4)
  • 8. ✨Feature✨ Branch Approach
    • 8.1. Idea
    • 8.2. Benefits
    • 8.3. How It Works
  • 9. Versioning
    • 9.1. Semantic Versioning
    • 9.2. Benefits
  • 10. Useful Commands
    • 10.1. git status
    • 10.2. git checkout
    • 10.3. git stash
    • 10.4. git cherry-pick
    • 10.5. git worktree
  • 11. Exercise

Part 2: Git and its Remotes

  • 1. Remote Services
    • 1.1. Non-Exhaustive Overview of Hosting Services
  • 2. Popular Remotes
    • 2.1. Overview: GitHub & GitLab
    • 2.2. GitHub
    • 2.3. GitLab
    • 2.4. I-MATH GitLab Server
    • 2.5. UZH GitLab Server
    • 2.6. UZH GitHub
  • 3. Remote Features
    • 3.1. Universal Features
    • 3.2. Web Interface
    • 3.3. Collaboration Tools
      • 3.3.1. Issues
      • 3.3.2. Merge/Pull Requests
      • 3.3.3. Milestones
      • 3.3.4. Labels
      • 3.3.5. Activity Tracking
        • 3.3.5.1. News Feed ⚡ History
      • 3.3.6. A Note on Collaboration
    • 3.4. Access Control
    • 3.5. Continuous Integration & Continuous Deployment (CI/CD)
  • 4. Project Management
    • 4.1. + Remote Tools Interactions
    • 4.2. Feature Branch Approach - reloaded
      • 4.2.1. Workflow
  • 5. Organizing Projects
    • 5.1. Challenges in Research Groups
    • 5.2. GitHub’s Organization Structure
      • 5.2.1. Key Elements
      • 5.2.2. Setting up a GitHub Organization
    • 5.3. GitLab’s Organization Structure
      • 5.3.1. Key Elements
      • 5.3.2. Setting up an Organization
    • 5.4. Differences Between GitHub and GitLab
  • 6. Contributing to 🔓 Open Source Repositories
    • 6.1. Step-by-Step
  • 7. Further Topics Not Covered
  • 8. Exercise

Day 1 Recap

  • Key Takeaways
    • Best Practices
    • Feature Branch Approach
    • Git Commands & AI Agents

Part 3: CI/CD Workflows

  • 1. Why 🤖 Automation?
    • 1.1. Pipelines vs Agents
    • 1.2. Benefits of Automation
    • 1.3. The Challenges of Automation
    • 1.4. How Automation Helps
      • 1.4.1. Healthy Reference
      • 1.4.2. Collaboration
      • 1.4.3. Increased Quality
      • 1.4.4. Transparency
      • 1.4.5. Reproducibility
  • 2. Creating CI/CD Scripts
    • 2.1. A YAML Primer
      • 2.1.1. What is YAML?
      • 2.1.2. YAML Syntax
      • 2.1.3. Conclusion
    • 2.2. Understanding Variable Substitution
    • 2.3. From YAML to Automation
    • 2.4. GitHub Workflows
      • 2.4.1. How to Handle Automation Scripts
      • 2.4.2. Minimal Content
      • 2.4.3. A Minimal Example
      • 2.4.4. How to Trigger Workflows
      • 2.4.5. How to Define Variables
      • 2.4.6. Some Advanced Features
    • 2.5. Recap: Weekend Out Exercise
    • 2.6. GitLab Pipelines
      • 2.6.1. How to Handle Automation Scripts
      • 2.6.2. Minimal Content
      • 2.6.3. A Minimal Example
      • 2.6.4. How to Trigger Pipelines
      • 2.6.5. How to Define Variables
      • 2.6.6. Some Advanced Features
    • 2.7. Workflows vs. Pipelines - Overview
    • 2.8. Workflows vs. Pipelines - by Example
  • 3. Runners
    • 3.1. What Are Runners in CI/CD?
    • 3.2. Types of Runners
    • 3.3. Configuring Runners
    • 3.4. Communication with Remote Service
  • 4. 🤗 Embrace automation 🤗
    • 4.1. Recap
    • 4.2. Feature Branch Approach - with Automation
    • 4.3. Some considerations
      • 4.3.1. Start Small!
      • 4.3.2. Create your own Docker images
      • 4.3.3. Debugging CI/CD Pipelines/Workflows
  • 5. Exercise

Part 4: Git and Science

  • 1. in Science
    • 1.1. A Historical Perspective
  • 2. Project Management Tools
    • 2.1. Key Features and Benefits 1/2
    • 2.2. Key Features and Benefits 2/2
    • 2.3. Advanced & Features
    • 2.4. Example: Paper Review on or
  • 3. Large File Storage (LFS)
    • 3.1. Why Use LFS?
    • 3.2. vs. LFS: A Comparison
    • 3.3. Data Model
      • 3.3.1. How does Track Files?
      • 3.3.2. How LFS Tracks Large Files
    • 3.4. How to use LFS
    • 3.5. LFS Availability at UZH
  • 4. Submodules
    • 4.1. What are Submodules?
    • 4.2. Features of Submodules
    • 4.3. Benefits for Reproducibility
    • 4.4. Use Cases
    • 4.5. Essential Commands
    • 4.6. Working with Submodules
    • 4.7. Gotchas for Submodules
    • 4.8. Handling Submodules in CI/CD Pipelines
      • 4.8.1. GitHub Workflow Example
      • 4.8.2. GitLab Pipeline Example
    • 4.9. Exercise: The Course Content Structure
  • 5. Versioning ⚡️Reproducibility
    • 5.1. and Scientific Reproducibility
    • 5.2. Reproducibility
    • 5.3. What’s Missing?
    • 5.4. Where and its Remote Services Can Help
      • 5.4.1. Documentation
      • 5.4.2. Data Availability
      • 5.4.3. Configuration Settings
      • 5.4.4. Dependencies
      • 5.4.5. Transitive Dependencies
      • 5.4.6. Workflow Documentation
      • 5.4.7. Execution Environment
    • 5.5. How Can Enhance Reproducibility
    • 5.6. Can Do More!
    • 5.7. … and More!
    • 5.8. How Remote Services Can Enhance Reproducibility
    • 5.9. Bringing It All Together: Enhancing Reproducibility
  • 6. Exercise

Outro

  • Outro
    • Additional Material
    • Instructors
    • About
  • Repository
  • Suggest edit
  • .md

CI/CD Workflows

  • 1. Why 🤖 Automation?
  • 2. Creating CI/CD Scripts
  • 3. Runners
  • 4. 🤗 Embrace automation 🤗
  • 5. Exercise

previous

Git Commands & AI Agents

next

1. Why 🤖 Automation?

By Jonas I. Liechti, Matteo Delucchi

© Copyright 2023-2025; T4D GmbH.

Privacy Policy