git · v1.0 · 2026-07-20 · sha256 8a34007f12299b1b
git v1.0A
Immutable. This exact content never changes and is served at /api/v1/blob/8a34007f12299b1b.
--- name: git description: Version control. license: MIT metadata: author: vant version: "1.0" --- # Git > Version control. --- ## When To Use - Any codebase - Track changes - Collaboration --- ## What To Do ### 1. Basic Commands | Command | What | |---------|------| | git status | Working tree | | git add | Stage changes | | git commit | Save changes | | git push | Upload | | git pull | Download | | git clone | Copy repo | ### 2. Branches ```bash git checkout -b new-branch git branch -d old-branch git merge feature ``` ### 3. History ```bash git log --oneline git diff HEAD~1 git show commit:file ``` ### 4. Remote ```bash git remote -v git fetch origin git rebase main ``` --- ## Output ``` ## Git | Branch | Status | |--------|--------| | main | [current] | ### Changes - [staged]: [n] - [unstaged]: [n] ``` --- **Role**: Git User **Input**: Changes **Output**: Tracked > Version control.