Advanced Git operations and developer productivity tool
npm install gitmorph-cli
npm install -g gitmorph-cli
`
Usage
After installation, you can use the gim command followed by the desired operation. Here's a list of available commands:
$3
- gim init: Initialize a new Git repository
- gim clone : Clone a repository
- gim stage : Stage files
- gim save ": Commit changes
- gim upload: Push to remote
- gim download: Pull from remote
- gim status: Check status
- gim history: Check log
- gim branch : Create a new branch
- gim switch : Switch to a different branch
- gim merge : Merge branches
- gim delete : Delete a branch
- gim stash: Stash changes
- gim apply-stash: Apply stashed changes
- gim rebase : Rebase current branch
$3
- gim create-ignore: Create a .gitignore file with common patterns
- gim analyze: Analyze repository statistics
- gim todo: List or add TODO comments in your code
- gim scaffold : Scaffold a basic project structure (node, react)
- gim search : Search for a string in all files
- gim diff: Show changes between commits, commit and working tree, etc
- gim blame : Show what revision and author last modified each line of a file
- gim hooks: Manage Git hooks
- gim lint: Lint your code
- gim benchmark : Run a simple benchmark test
- gim dependencies: Analyze project dependencies
- gim docker: Generate a basic Dockerfile for the project
- gim test: Run tests
- gim config: Manage GitMorph configuration
Examples
1. Initialize a new repository:
`
gim init
`
2. Stage all files and commit:
`
gim stage .
gim save "Initial commit"
`
3. Push changes to remote:
`
gim upload
`
4. Analyze repository statistics:
`
gim analyze
`
5. Scaffold a new Node.js project:
`
gim scaffold node
`
6. Search for a string in all files:
`
gim search "TODO"
`
7. Run a benchmark test:
`
gim benchmark "npm test" -r 10
`
8. Generate a Dockerfile:
`
gim docker
`
Configuration
You can configure GitMorph CLI using the gim config command. This allows you to set global or local configurations.
- Set a global configuration:
`
gim config -g -s key value
`
- Set a local configuration:
`
gim config -l -s key value
`
- View current configuration:
`
gim config -v
``