00_Overview
Git & GitHub - Developer Reference
A comprehensive guide to Git version control and GitHub collaboration.
π Quick Navigation
| Section | Description |
|---|---|
| Installation & Setup | Install and configure Git |
| Basic Commands | Essential daily commands |
| Advanced Commands | Rebase, stash, submodules |
| Branching | Branch strategies and merging |
| Remote Repos | Work with remote repositories |
| Workflows | Git Flow, GitHub Flow, PRs |
| Internals | How Git works under the hood |
| Advanced Topics | Bisect, hooks, reflog |
| GitHub Features | Actions, Issues, CLI |
| GitHub Advanced | CI/CD, API, Secrets |
| FAANG Prep | Enterprise workflows |
| Reference | Cheat sheet and resources |
π Quick Start Commands
Check Git Version
git --version
Shows the installed Git version.
Configure Your Identity
git config --global user.name "Your Name"
Sets your name for all commits.
git config --global user.email "you@example.com"
Sets your email for all commits.
Initialize a Repository
git init
Creates a new Git repository in current directory.
Clone a Repository
git clone https://github.com/user/repo.git
Downloads a repository from GitHub to your computer.
Basic Workflow
graph LR
A[Edit Files] --> B[git add]
B --> C[git commit]
C --> D[git push]
Stage All Changes
git add .
Stages all modified and new files for commit.
Commit Changes
git commit -m "Your commit message"
Creates a commit with your staged changes.
Push to Remote
git push
Uploads your commits to the remote repository.
Pull Latest Changes
git pull
Downloads and merges changes from remote repository.
π Learning Path
Beginner
Intermediate
Advanced
#git #github #overview #reference