GitMorph CLI Documentation
Installation
To install GitMorph CLI globally, run:
npm install -g gitmorph-cliUsage
After installation, you can use the `gm` command followed by the desired operation.
Git Commands
gm init: Initialize a new Git repositorygm clone <url>: Clone a repositorygm stage <files>: Stage filesgm save "<message>": Commit changesgm upload: Push to remotegm download: Pull from remotegm status: Check statusgm history: Check loggm branch <name>: Create a new branchgm switch <branch>: Switch to a different branchgm merge <branch>: Merge branchesgm delete <branch>: Delete a branchgm stash: Stash changesgm apply-stash: Apply stashed changesgm rebase <branch>: Rebase current branch
Beyond Git
gm create-ignore: Create a .gitignore file with common patternsgm analyze: Analyze repository statisticsgm todo: List or add TODO comments in your codegm scaffold <type>: Scaffold a basic project structuregm search <query>: Search for a string in all filesgm diff: Show changes between commits, commit and working tree, etcgm blame <file>: Show what revision and author last modified each line of a filegm hooks: Manage Git hooksgm lint: Lint your codegm benchmark <command>: Run a simple benchmark testgm dependencies: Analyze project dependenciesgm docker: Generate a basic Dockerfile for the projectgm 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