GitMorph CLI Documentation

Installation

To install GitMorph CLI globally, run:

npm install -g gitmorph-cli

Usage

After installation, you can use the `gm` command followed by the desired operation.

Git Commands

  • gm init: Initialize a new Git repository
  • gm clone <url>: Clone a repository
  • gm stage <files>: Stage files
  • gm save "<message>": Commit changes
  • gm upload: Push to remote
  • gm download: Pull from remote
  • gm status: Check status
  • gm history: Check log
  • gm branch <name>: Create a new branch
  • gm switch <branch>: Switch to a different branch
  • gm merge <branch>: Merge branches
  • gm delete <branch>: Delete a branch
  • gm stash: Stash changes
  • gm apply-stash: Apply stashed changes
  • gm rebase <branch>: Rebase current branch

Beyond Git

  • gm create-ignore: Create a .gitignore file with common patterns
  • gm analyze: Analyze repository statistics
  • gm todo: List or add TODO comments in your code
  • gm scaffold <type>: Scaffold a basic project structure
  • gm search <query>: Search for a string in all files
  • gm diff: Show changes between commits, commit and working tree, etc
  • gm blame <file>: Show what revision and author last modified each line of a file
  • gm hooks: Manage Git hooks
  • gm lint: Lint your code
  • gm benchmark <command>: Run a simple benchmark test
  • gm dependencies: Analyze project dependencies
  • gm docker: Generate a basic Dockerfile for the project
  • gm test: Run tests

Configuration

You can configure GitMorph CLI using the gm config command:

  • Set a global configuration: gm config -g -s key value
  • Set a local configuration: gm config -l -s key value
  • View current configuration: gm config -v