git

Manage GitHub, GitLab, and Codeberg repositories and pull requests via terminal commands.

4.6k|161|Updated Oct 1, 2022
One-click install
npx skills add https://github.com/x-cmd/x-cmd --skill git-x-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git
Source: https://github.com/x-cmd/x-cmd/tree/main/mod/skill0/lib/skill0/skills/git
Command: npx skills add https://github.com/x-cmd/x-cmd --skill git-x-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires x-cmd, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies Git repository and code hosting platform management through terminal commands, allowing for efficient and centralized code control.

Core Features & Use Cases

  • GitHub, GitLab, and Codeberg Integration: Manage repositories across multiple platforms with a unified interface.
  • Pull Requests and Code Review: Create, manage, and review pull requests within your repositories.
  • Git Hooks Management: Configure and manage Git hooks for automated repository operations.
  • Use Case: Streamline the process of updating, reviewing, and deploying code across multiple GitHub repositories with a single command line tool.

Quick Start

Install x-cmd and use the following commands to clone a GitHub repository, create a pull request, and manage Git hooks.

# Clone a GitHub repository
x gh repo clone owner/repo

# Create a pull request
x gh pr create --title "Fix bug" --body "Description"

# Manage Git hooks
x git hook

Frequently Asked Questions about git

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage pull requests and code reviews across GitHub and GitLab from the terminal?

You can manage pull requests and code reviews across GitHub, GitLab, and Codeberg from the terminal using a unified command interface. This Skill streamlines repository management and automates code review processes directly within your workflow.

Can I create a GitHub pull request using a single command line tool?

Yes, you can create a GitHub pull request using a single command line tool. By executing a command like `x gh pr create` with a title and body, you can quickly initiate pull requests without leaving your terminal environment.

Does this terminal Git tool require any specific environment or dependencies to run?

Yes, this terminal Git tool requires the x-cmd package to execute and configure commands. You must install x-cmd to utilize its unified interface for managing repositories, pull requests, and Git hooks across multiple platforms.

What is the best way to configure and manage Git hooks for automated repository operations?

The best way to configure and manage Git hooks for automated repository operations is through dedicated terminal commands. This Skill provides a command interface to directly set up and handle your Git hooks for streamlined automation.

How do I clone repositories across multiple code hosting platforms like Codeberg and GitHub?

You can clone repositories across multiple code hosting platforms like Codeberg and GitHub by using specific terminal commands. This Skill provides a unified interface, allowing you to use commands like `x gh repo clone` to manage repository cloning efficiently.

Are there limitations when managing multiple GitHub repositories from the command line?

Managing multiple GitHub repositories from the command line requires the x-cmd dependency for execution. While it streamlines updates and deployments across repositories, users must ensure x-cmd is properly configured to avoid operational interruptions.