A comprehensive guide for daily Git operations using our custom aliases.
Most frequently used commands:
git get # Update your branch (fetch + pull + update submodules)
git ss # Quick status check
git aa # Stage all changes
git cm # Commit with message
git push1 # Push to remoteAlways begin with:
git get # Sync your repository with remoteFor Jira tasks:
git jira feature PROJ-123 add-login-page
# Creates: feature/PROJ-123-add-login-pageFor general features:
git topic-begin feature/add-dark-modeMonitor your changes:
git ss # Quick status
git d # Review changesSave your work:
# Regular commits
git aa && git cm # Stage and commit
# Quick saves
git wip # Save as Work-In-Progress
git snapshot # Stash while keeping changesStay in sync:
git get # Pull updates
git push1 # Push your changes# Update your branch
git get
git jira-rebase # For Jira branches
# Review changes
git ss # Check status
git d # Review diff
git lg # Check commit history
# Quality checks
git bvv # Check branch status
git ll # Review commit details
# Final verification
git lo # Check for WIP commits
git pushy # Safe force-push if needed✅ Quality Checklist:
- No WIP commits remain
- Commit messages follow conventions
- All changes are intentional
- No untracked files left behind
- Branch is up to date with base
- Save Current Work:
git wip # Save as WIP
# OR
git snapshot # Flexible stash- Switch Context:
git current-branch # Note your position
git o $(git default-branch)
git get # Update base- Fix Bug:
# Create bug branch
git jira hotfix BUG-123 fix-login-crash
# OR
git topic-begin hotfix/fix-login-crash
# Fix and publish
git aa && git cm # Stage and commit
git push1 # Push changes
git topic-end # Complete fix- Resume Feature Work:
git o <original-branch> # Return to feature
git get # Get latest changes
git unwip # Restore WIP (if used)git unadd # Unstage changes
git uncommit # Undo last commit
git reset-commit # Soft reset commitgit panic # Create backup tarball
git snapshot # Quick save changesgit bv # Branch details
git who # Contributor stats
git lg # Commit graph-
🔄 Stay Updated
- Start each day with
git get - Sync frequently with base branch
- Start each day with
-
📝 Clean Commits
- Write clear commit messages
- Make small, focused changes
- Follow commit message format
-
🛡️ Work Protection
- Use
git wipfor work in progress - Create
git snapshotbefore risky changes - Regular pushes with
git push1
- Use
-
🌿 Branch Management
- Use proper branch naming
- Clean up after completing work
- Keep history clean and logical
<type>(<scope>): <description>
Examples:
feat(auth): add password reset functionality
fix(ui): resolve button alignment issues
docs(api): update endpoint documentation
Types:
feat: New featurefix: Bug fixdocs: Documentationstyle: Formattingrefactor: Code restructuringtest: Adding testschore: Maintenance
git aliases # List all available commandsFor more details, check the original GitAlias project.