x-cmd-git
x-cmd Git and Code Hosting Tools
Overview
This skill provides professional Git and code hosting platform management capabilities through the x-cmd ecosystem. The tools enable developers, DevOps engineers, and open source contributors to manage repositories, collaborate on code, automate workflows, and integrate with multiple Git hosting services directly from the terminal.
Available Tools
GitHub Management (gh)
Comprehensive GitHub platform integration and management.
- Usage:
x gh [subcommand] - Key subcommands:
repo- Repository managementissue- Issue tracking and managementpr- Pull request managementaction- GitHub Actions workflow managementuser- User profile and account managementsearch- Repository and topic searchbrowse- Open GitHub resources in browser
- Examples:
x gh user info- Get current user informationx gh repo app- Interactive repository viewerx gh repo clone owner/repo- Clone repositoryx gh pr create- Create pull requestx gh action workflow- Manage workflows
GitLab Management (gl)
Complete GitLab platform integration and administration.
- Usage:
x gl [subcommand] - Key subcommands:
repo- Repository managementissue- Issue managementmr- Merge request managementuser- User administrationgroup- Group and team managementdeploy- Deployment managementsnippet- Code snippet management
- Examples:
x gl repo ls- List repositoriesx gl mr create- Create merge requestx gl user info- Get user informationx gl group ls- List groupsx gl repo clone project- Clone repository
Codeberg Management (cb)
Lightweight CLI for Codeberg open source hosting.
- Usage:
x cb [subcommand] - Key subcommands:
repo- Repository managementuser- User profile managementorg- Organization administrationissue- Issue trackingpr- Pull request managementnotification- Notification handling
- Examples:
x cb repo ls- List repositoriesx cb user info- Get user informationx cb issue create- Create issuex cb pr list- List pull requestsx cb repo clone owner/repo- Clone repository
Forgejo Management (fjo)
Self-hosted Git platform management for Forgejo instances.
- Usage:
x fjo [subcommand] - Key subcommands:
repo- Repository managementuser- User administrationorg- Organization managementissue- Issue trackingnotification- Notification handling
- Examples:
x fjo repo ls- List repositoriesx fjo user info- Get user informationx fjo issue create- Create issuex fjo pr create- Create pull requestx fjo repo clone project- Clone repository
Git Hooks Management (githook)
Git hooks configuration and automation.
- Usage:
x githook [subcommand] - Key subcommands:
apply- Apply Git hooks configurationclear- Clear hooks and remove configuration
- Examples:
x githook apply- Apply hooks from configurationx githook clear- Remove all hooks configuration
Git and Code Hosting Use Cases
Repository Management
- Use
x gh repofor GitHub repository operations - Use
x gl repofor GitLab repository management - Use
x cb repofor Codeberg repository handling - Use
x fjo repofor Forgejo repository administration
Collaboration and Code Review
- Use
x gh prfor GitHub pull request workflows - Use
x gl mrfor GitLab merge request processes - Use
x cb prfor Codeberg pull request management - Use
x fjo prfor Forgejo pull request handling
Issue Tracking and Project Management
- Use
x gh issuefor GitHub issue management - Use
x gl issuefor GitLab issue tracking - Use
x cb issuefor Codeberg issue handling - Use
x fjo issuefor Forgejo issue management
CI/CD and Automation
- Use
x gh actionfor GitHub Actions workflows - Use
x gldeployment features for GitLab CI/CD - Use
x githookfor local Git automation - Use platform-specific automation features
User and Team Administration
- Use
x gh userfor GitHub user management - Use
x gl userandx gl groupfor GitLab administration - Use
x cb userandx cb orgfor Codeberg organization - Use
x fjo userandx fjo orgfor Forgejo administration
Installation and Setup
Prerequisites
- x-cmd CLI installed
- Git installed and configured
- Internet connectivity for platform operations
Platform Authentication
GitHub Setup
x gh init # Interactive configuration
x gh --cfg token=<github-token>
Get GitHub token from: https://github.com/settings/tokens
GitLab Setup
x gl init # Interactive configuration
x gl --cfg token=<gitlab-token>
Get GitLab token from: https://gitlab.com/-/profile/personal_access_tokens
Codeberg Setup
x cb init # Interactive configuration
x cb --cfg token=<codeberg-token>
Get Codeberg token from: https://codeberg.org/user/settings/applications
Forgejo Setup
x fjo init # Interactive configuration
x fjo --cfg token=<forgejo-token>
Configure Forgejo instance and token
Git Hooks Configuration
# Apply hooks configuration
x githook apply
# Clear hooks configuration
x githook clear
Integration with Other Tools
AI and Code Assistance
- Use
--coflag for AI code copilot functionality - Use
ddgoaifor AI-powered search and summarization - Integrate with other AI tools for code generation
Data Processing and Analysis
- Pipe output to
x jqfor JSON processing - Use with
@zhfor Chinese translation - Export to CSV/TSV for reporting and analysis
Development Workflows
- Combine with
x curlfor API interactions - Use with shell scripts for automation
- Integrate with CI/CD pipelines
Troubleshooting
Common Issues
- Authentication errors: Verify API tokens and permissions
- Network connectivity: Check internet connection for platform operations
- Permission issues: Ensure appropriate repository access rights
- Configuration problems: Verify platform-specific settings
Performance Optimization
- Use specific queries rather than broad searches
- Cache authentication tokens securely
- Use interactive interfaces for complex operations
- Limit API calls to respect rate limits
Security Best Practices
- Token security: Store API tokens securely and rotate regularly
- Access control: Follow principle of least privilege for repository access
- Audit logging: Maintain records of platform operations
- Compliance: Ensure usage complies with platform terms of service
Support and Resources
- x-cmd Git Documentation: https://x-cmd.com/mod/git
- GitHub CLI: https://x-cmd.com/mod/gh
- GitLab CLI: https://x-cmd.com/mod/gl
- Codeberg CLI: https://x-cmd.com/mod/cb
- Forgejo CLI: https://x-cmd.com/mod/fjo
- Git Hooks: https://x-cmd.com/mod/githook
For additional help:
- Use
x [tool] --helpfor specific tool documentation - Visit individual module pages for detailed usage
- Check platform-specific API documentation
- Consult Git and DevOps best practices
More from x-cmd/skill
x-cmd
|
25x-security
This skill provides comprehensive security assessment and vulnerability management tools through x-cmd CLI, including network reconnaissance with Shodan, vulnerability scanning with OSV, and known exploited vulnerability tracking with KEV. This skill should be used when users need to perform security assessments, vulnerability research, network reconnaissance, or security monitoring from command line interfaces.
13x-network
This skill provides comprehensive network administration and diagnostic tools through x-cmd CLI, including network scanning with Nmap, ARP table management, DNS configuration, routing table analysis, and enhanced ping utilities. This skill should be used when users need to perform network diagnostics, troubleshoot connectivity issues, analyze network topology, or monitor network performance from command line interfaces.
11x-knowledge
This skill provides access to various knowledge search tools through x-cmd CLI, including Hacker News, Wikipedia, DuckDuckGo search, RFC documents, Project Gutenberg books, and Stack Exchange. This skill should be used when users need to search for technical information, browse online knowledge bases, or access documentation from command line interfaces.
6x-git
This skill provides comprehensive Git and code hosting platform management tools through x-cmd CLI, including GitHub, GitLab, Codeberg, Forgejo integration, and Git hooks management. This skill should be used when users need to manage Git repositories, work with code hosting platforms, automate Git workflows, or configure Git hooks from command line interfaces.
6x-system
This skill provides comprehensive system administration and monitoring tools through x-cmd CLI, including process management, macOS system utilities, network configuration, disk health monitoring, and storage analysis. This skill should be used when users need to perform system administration tasks, monitor system performance, manage network configurations, or troubleshoot system issues from command line interfaces.
6