https://github.com/aroonsekar/git-shortcuts
A Zsh-based natural language Git toolkit to save keystrokes and brainpower.
https://github.com/aroonsekar/git-shortcuts
cli cli-tools dotfiles git productivity zsh
Last synced: 8 months ago
JSON representation
A Zsh-based natural language Git toolkit to save keystrokes and brainpower.
- Host: GitHub
- URL: https://github.com/aroonsekar/git-shortcuts
- Owner: aroonsekar
- License: mit
- Created: 2025-05-13T00:38:25.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-05-13T01:00:05.000Z (9 months ago)
- Last Synced: 2025-05-13T01:32:07.929Z (9 months ago)
- Topics: cli, cli-tools, dotfiles, git, productivity, zsh
- Language: Shell
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🚀 Git Shortcuts
A simple, natural language Git toolkit to speed up your workflow.
Use plain English-style commands like `addncommit`, `readytopush`, or launch `gitmenu` to interact.
---
## ✨ Features
- 20+ natural language Git commands
- Interactive terminal menu with `gitmenu`
- Human-readable help with `githelp`
- Works on macOS, Linux, and WSL
- Available for Windows PowerShell
---
## 🐧 Installation (Zsh – macOS/Linux/WSL)
1. Clone this repo:
```bash
git clone https://github.com/aroonsekar/git-shortcuts.git
```
2. Add this to your `~/.zshrc`:
```bash
source ~/git-shortcuts/.git-shortcuts.zsh
```
3. Reload your shell:
```bash
source ~/.zshrc
```
---
## 🪟 Installation (PowerShell – Windows) - A small headache
### ✅ 1. Clone or download this repo
Save it somewhere safe, like:
```
C:\Users\yourname\git-shortcuts\git-shortcuts.ps1
```
### ✅ 2. Unblock the script
PowerShell blocks scripts downloaded from the internet. You must unblock it first:
**Option A (GUI):**
- Right-click on `git-shortcuts.ps1` → **Properties**
- Check the box **“Unblock”** at the bottom
- Click **Apply** → **OK**
**Option B (Command line):**
```powershell
Unblock-File "C:\Users\yourname\git-shortcuts\git-shortcuts.ps1"
```
### ✅ 3. Enable local script execution
Open PowerShell **as Administrator** and run:
```powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
```
Choose **[Y]** when prompted.
### ✅ 4. Load the shortcuts (temporary)
To load the shortcuts into your session:
```powershell
. "C:\Users\yourname\git-shortcuts\git-shortcuts.ps1"
```
### ✅ 5. (Optional) Auto-load on every new PowerShell session
To make shortcuts always available:
```powershell
notepad $PROFILE
```
Then add this line at the bottom of the file:
```powershell
. "C:\Users\yourname\git-shortcuts\git-shortcuts.ps1"
```
Save and restart PowerShell.
---
## ⚡ Example Usage
**Zsh:**
```bash
addncommit "Update README"
readytopush "Fix merge conflict and push"
stashit "WIP - new UI layout"
deletemybranch feature/login
gitmenu
githelp
```
**PowerShell:**
```powershell
AddAndCommit "Update README"
ReadyToPush "Final bugfixes"
FixMerge
Show-GitMenu
GitHelp
```
---
## 🧠 Commands Overview
| Zsh Command | PowerShell Equivalent | Description |
|-------------------|------------------------|----------------------------------------------|
| `addncommit` | `AddAndCommit` | Add all changes and commit with message |
| `readytopush` | `ReadyToPush` | Commit, rebase, and push |
| `newbranch` | `NewBranch` | Create and switch to a new branch |
| `whatsthestatus` | `WhatIsTheStatus` | Show current git status |
| `whatdidido` | `WhatDidIDo` | Show last commit |
| `deletemybranch` | `DeleteMyBranch` | Delete local and remote branch |
| `gitmenu` | `Show-GitMenu` | Interactive CLI menu |
| `githelp` | `GitHelp` | Show help text |
> Zsh users also have command autocompletion enabled for these shortcuts.
---
## 👤 Author
Created with [aroonsekar](https://github.com/aroonsekar) & ChatGPT.
If you like it, ⭐️ star it — and feel free to fork, contribute, or suggest new commands!