This repository contains my personal collection of custom Git aliases that I use to streamline my workflow. Everything here is designed to work on Windows PowerShell but bash version is also included.
Feel free to cherry‑pick, fork or straight away steal those in any other fashion.
Run the helper script for your shell from the root of this repo:
# PowerShell
./install-aliases.ps1# Bash
./install-aliases.sh| Alias | What it does |
|---|---|
s |
Shortcut for git status. |
c |
Shortcut for git commit -m. Example use: git c "Init repo" |
ac |
Stage everything and commit with the message you supply. git ac "Add login feature" |
amend |
Shortcut for git commit --amend --no-edit |
history, h |
A concise summary of the last 10 commits history. |
last, l |
One‑liner view of the most recent commit. |
unstage |
Unstages all files but keeps the changes |
uncommit |
Undoes the last commit but keeps the changes staged. |
nuke |
Force‑sync current branch to its remote upstream, discarding all local commits & untracked files. If the name doesn't give it away - this command is destructive! Use with caution. |
aliases |
List every alias in your config. |
This repository is licensed under the MIT License.