Skip to content

aroonsekar/git-shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 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:
git clone https://github.com/aroonsekar/git-shortcuts.git
  1. Add this to your ~/.zshrc:
source ~/git-shortcuts/.git-shortcuts.zsh
  1. Reload your shell:
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.ps1Properties
  • Check the box “Unblock” at the bottom
  • Click ApplyOK

Option B (Command line):

Unblock-File "C:\Users\yourname\git-shortcuts\git-shortcuts.ps1"

✅ 3. Enable local script execution

Open PowerShell as Administrator and run:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Choose [Y] when prompted.

✅ 4. Load the shortcuts (temporary)

To load the shortcuts into your session:

. "C:\Users\yourname\git-shortcuts\git-shortcuts.ps1"

✅ 5. (Optional) Auto-load on every new PowerShell session

To make shortcuts always available:

notepad $PROFILE

Then add this line at the bottom of the file:

. "C:\Users\yourname\git-shortcuts\git-shortcuts.ps1"

Save and restart PowerShell.


⚡ Example Usage

Zsh:

addncommit "Update README"
readytopush "Fix merge conflict and push"
stashit "WIP - new UI layout"
deletemybranch feature/login
gitmenu
githelp

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 & ChatGPT.

If you like it, ⭐️ star it — and feel free to fork, contribute, or suggest new commands!

About

A Zsh and Powershell based natural language Git toolkit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors