Git

Version control.

dhaupin b9510af 886 B Updated

File contents

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.

dhaupin/vant/tree/main/models/public/skills/vant-skill-git commit b9510af935

Frequently asked questions

npx skillmds@latest add dhaupin/git