Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Creator: Linus Torvalds Profile
GitHub Repo Link
Core Concepts and Setup
Distributed version control system for code tracking changes.
Steps to install Git on various operating systems.
Initial setup for Git with username and email.
Typical flow: add, commit, push, and pull operations.
Contains all metadata and object history for project.
Advantages of Git compared to traditional version control tools.
Repository and Commits
Initialize a Git repository to start version control.
Area where changes are prepared before committing.
Record changes to the repository with commit messages.
See previous commits and changes using Git log.
Exclude files from tracking using .gitignore configuration.
Branching and Merging
Branches let you diverge from main development line.
Generate new branches for features or experiments.
Move between branches to manage development flow.
Combine different branches into a single unified one.
Different merge behaviors depending on history divergence.
Common conventions for clear and consistent branch naming.
Clean up branches locally and on remote.
Remote Repositories
Undoing Changes
Navigate branches or undo changes safely.
Move HEAD and optionally working directory backward.
Undo changes by creating a new inverse commit.
Edit the most recent commit including message.
Temporarily save changes not ready to commit.
Advanced Concepts
Move or combine commits to streamline history.
Mark specific commits as important release points.
Apply specific commit from one branch to another.
Include other repositories within your repository.
Automate tasks with scripts at specific Git events.
Manage multiple working directories from one Git repo.