my-notes

00_Overview

2 min read

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

  1. Installing Git
  2. Configuring Git
  3. git init & clone
  4. git add & commit
  5. git push & pull

Intermediate

  1. Branching
  2. Merging
  3. git stash
  4. Pull Requests

Advanced

  1. git rebase
  2. Git Objects
  3. Git Hooks
  4. CI/CD

#git #github #overview #reference

Built with mdgarden