🏠 Home / Hub 🏠 Back to Hub

🔶 Git & GitHub

Version Control | Developer မဖြစ်မနေ သိရမည့် tool | Code history, teamwork, backup

01

Git Basics

init, add, commit, status, log, .gitignore

02

Branches

branch, checkout, switch, branch naming strategy

03

Merge & Conflicts

merge, conflict resolve, fast-forward vs 3-way

04

Remote & GitHub

remote add, push, pull, fetch, clone, SSH keys

05

GitHub Workflow

Fork, Pull Request, Issues, Actions CI/CD

06

Advanced Git

rebase, stash, cherry-pick, reset, tag, reflog

Prerequisites: ဘာမှ မလိုဘူး — developer ဖြစ်ချင်ရင် ဒါကနေ စလေ!
Setup: git-scm.com → install → git --version
GUI tool: GitHub Desktop, GitKraken, VS Code built-in Git (beginner friendly)

⚡ Git Daily Commands

# Setup (တစ်ကြိမ်ပဲ)
git config --global user.name "Ko Ko"
git config --global user.email "ko@example.com"

# New project
git init
git add .
git commit -m "first commit"

# Daily workflow
git status              # ဘာ changed ကြည့်
git add filename.html   # specific file stage
git add .               # all changes stage
git commit -m "add login page"
git log --oneline       # history ကြည့်

# GitHub push
git remote add origin https://github.com/user/repo.git
git push -u origin main

# Update from GitHub
git pull origin main

# Undo mistakes
git restore filename.html   # discard changes
git reset HEAD~1            # undo last commit (keep files)

📌 Study Checklist