Git Syllabus

Learn and master Git through this comprehensive workshop!

  • Overview of version control systems and the role of Git
  • Installing and configuring Git
  • Understanding Git workflow: repository, working directory, staging area, commits
  • Using basic commands: `git init`, `git status`, `git add`, `git commit`
  • Viewing history with `git log` and understanding commit history

  • Understanding the concept of branches in Git
  • Creating and switching branches with `git branch` and `git checkout`
  • Merging branches with `git merge` and understanding merge strategies
  • Resolving merge conflicts effectively

  • Setting up a GitHub/GitLab account and connecting to a local repo
  • Cloning, fetching, and pulling from remote repositories
  • Pushing changes to remote repositories
  • Collaborative workflows: Pull Requests and Code Reviews

  • Using `git stash` to save and apply uncommitted changes
  • Rebasing for a cleaner commit history and interactive rebasing
  • Cherry-picking specific commits between branches
  • Tagging for releases and version management

  • Popular Git workflows: Git Flow, GitHub Flow, and Trunk-based development
  • Troubleshooting common issues and recovering lost commits
  • Using Git hooks for automation and setting up aliases for efficiency
  • Integrating Git with CI/CD for automated testing and deployment