| 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
git checkout -b new-branch
git branch -d old-branch
git merge feature
3. History
git log --oneline
git diff HEAD~1
git show commit:file
4. Remote
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.