Best Practices
Recommended Workflow
- Start with
git c: Use as your default commit command - Use
git r changesbefore committing for quality checks - Use
git acfor quick commits of all changes - Reserve
git acpfor confident, tested changes
When to Use Full Commands
Use full gcop-rs commands instead of aliases when:
- Writing scripts (for clarity)
- Documenting workflows
- Using advanced options not available in aliases
Safety Tips
- Review before
git acp: This pushes immediately, so usegit r changesfirst - Use
git undofreely: It's safe for local changes - Be careful with
git pf: Only force push to your own branches - Check status: Run
git statusaftergit undoto see your staged changes
Examples
Daily Development Workflow
bash
# Morning: Start new feature
git checkout -b feature/user-profile
# Work on it
vim src/profile.rs
vim src/routes.rs
# Review changes
git r changes
# Commit (all changes)
git ac
# More work
vim tests/profile_test.rs
# Quick commit and push
git acpFixing a Mistake
bash
# Oops, wrong commit message
git undo
# Fix and recommit
git c --yesCode Review Workflow
bash
# Before creating PR
git r changes # Check your changes
# If issues found, fix them
vim src/auth.rs
# Review again
git r changes
# Satisfied? Commit
git c