https://github.com/monyasau/gitpilot
A CLI tool for simplifying and managing Git operations
https://github.com/monyasau/gitpilot
cli git javascript
Last synced: 6 months ago
JSON representation
A CLI tool for simplifying and managing Git operations
- Host: GitHub
- URL: https://github.com/monyasau/gitpilot
- Owner: monyasau
- License: mit
- Created: 2024-09-30T08:52:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T10:45:28.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T16:03:30.735Z (over 1 year ago)
- Topics: cli, git, javascript
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gitpilot
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gitpilot
 
Gitpilot is a command-line interface (CLI) tool designed to simplify and streamline common Git operations. With an intuitive command structure, Gitpilot allows you to manage your Git repositories efficiently.
## Features
- **Time travel** create and push commit into the past or future, yes i'm serious, checkout( `backdate` | `commitOn` ) commands
- **Commit changes** with a custom message or by selecting files interactively.
- **Push and pull** changes to and from branches.
- **Create and switch branches** effortlessly.
- **Manage tags** with the ability to create and list annotated tags.
- **Stash changes** and apply stashes as needed.
- **Undo commits** or amend the last commit with a new message.
- **Cherry-pick commits** from your Git history.
- **Resolve merge conflicts** and manage Git configurations easily.
## Advantages
- Saves time and effort by simplifying command syntax.
- Streamlines Git operations for developers of all levels.
- Simplifies complex Git commands through a user-friendly interface.
- Enhances Git workflow efficiency.
## Installation
To install Gitpilot globally, run:
```bash
npm install -g gitpilot
```
### Usage
Once installed globally, you can access Gitpilot commands directly from your terminal. Simply type `gitpilot ` followed by any necessary arguments. Refer to the specific command descriptions for detailed usage instructions.
**Example:**
To commit staged changes with a message "Updated README":
```Bash
gitpilot commit "Updated README"
```
## Basic Commands
Commit changes:
```bash
gitpilot commit "Your commit message"
```
Undo the last commit:
```bash
gitpilot commit "Your commit message"
```
Commit to specific time (past or future):
```bash
gitpilot backdate "Your commit message" "2000-03-22"
```
> OR
```bash
gitpilot commitOn "Your commit message" "2000-03-22"
```
Edit the last commit's message:
```bash
gitpilot amend-commit "New commit message"
```
Push changes:
```bash
gitpilot push [branch]
```
Pull changes:
```bash
gitpilot pull [branch]
```
Create a new branch:
```bash
gitpilot create-branch
```
List all branches:
```bash
gitpilot list-branches
```
Delete a local branch:
```bash
gitpilot delete-branch
```
Create an annotated tag:
```bash
gitpilot create-tag "Your tag message"
```
List all tags:
```bash
gitpilot list-tags
```
Stash changes:
```bash
gitpilot stash
```
Apply a stash:
```bash
gitpilot apply-stash [stashIndex]
```
List all stashes:
```bash
gitpilot list-stashes
```
Unstage files:
```bash
gitpilot unstage
```
Cherry-pick a commit:
```bash
gitpilot cherry-pick
```
Resolve merge conflicts:
```bash
gitpilot resolve-conflicts
```
Set Git configuration:
```bash
gitpilot set-config [global]
```
Get Git configuration:
```bash
gitpilot get-config
```