Git Push Workflow
Standard workflow for staging, committing, and pushing changes to Git repositories.
Commit Message Format
Use conventional commits:
- •
feat:new feature - •
fix:bug fix - •
docs:documentation - •
style:formatting - •
refactor:code change without feature/fix - •
test:adding tests - •
chore:maintenance
Workflow
bash
# 1. Stage changes git add -A # 2. Commit with conventional message git commit -m "feat: add user authentication" # 3. Push to remote git push origin main
Best Practices
- •Check
git statusbefore committing - •Write clear, descriptive commit messages
- •Keep commits focused and atomic
- •Pull before pushing to avoid conflicts
- •Use branches for features