Skip to content

Git Commands ​

Basic Workflow ​

bash
# Initialize
git init

# Add and Commit
git add .
git commit -m "Initial commit"

# Push to branch
git push -u origin main

Branching ​

bash
# Create and switch branch
git checkout -b feature/new-thing

# Delete branch locally
git branch -d branch_name