
Introduction
If you use Git daily, you know how repetitive some commands can get. Typing git add ., git commit, and git push Doing dozens of times a day slows you down. That’s where our Git Macros Installer comes in — a simple, cross-platform automation script that adds 15 essential Git aliases to your setup.
This tool works on Windows (Git Bash / WSL), Linux, and macOS, helping you code faster and focus on what really matters: building.
What Are Git Macros?
Git macros (also known as Git aliases) are shortcuts that let you replace long or repetitive commands with short, memorable ones. For example:
git acp "message"
…runs three commands in one:
git add . && git commit -m "message" && git push
These macros can automate tasks like branching, fetching, rebasing, and cleaning up your repo.
👉 Learn more about aliases in the official Git documentation.
The 15 Git Macros Included
| Macro | Example | Description |
|---|---|---|
git acp | git acp "message" | Add, commit, and push current branch |
git c | git c "message" | Commit staged files |
git pushc | git pushc | Push current branch |
git up | git up | Pull with rebase |
git lg | git lg | One-line graph log |
git undo | git undo | Undo last commit, keep changes |
git cb | git cb new-branch | Create & switch to branch |
git cleanup | git cleanup | Delete merged branches |
git stashpop | git stashpop | Stash & reapply changes |
git dfs | git dfs | Diff staged changes |
git s | git s | Short status |
git amend | git amend | Amend last commit |
git prev | git prev | Switch to previous branch |
git fp | git fp | Fetch & prune |
git tagsr | git tagsr | Show tags (newest first) |
Installation
Linux / macOS
Open your terminal and run:
curl -sSL https://raw.githubusercontent.com/krasenslavov/git-macros-installer/refs/heads/main/git-macros.sh | bash
Windows (Git Bash / WSL)
curl -sSL https://raw.githubusercontent.com/krasenslavov/git-macros-installer/refs/heads/main/git-macros.sh | bash
That’s it! All 15 macros are installed globally — you can now use them in any repository.
Why Use Git Macros?
- Speed: Run 3–5 commands in one.
- Simplicity: Keep your Git workflow clean and consistent.
- Cross-Platform: Works on Windows, macOS, and Linux.
- Automation Ready: Perfect for teams, CI/CD scripts, or solo developers.
Developers waste countless hours on repetitive Git tasks. With these macros, you’ll be working faster in minutes.
Quick Reference Cheat Sheet

You can download the cheat sheet and keep it handy in your workspace.
Related Resources
Conclusion
The Git Macros Installer is a free, cross-platform tool that helps developers automate their Git workflow. With 15 carefully chosen aliases, it streamlines everything from committing to branching, giving you back valuable time each day.
✅ Works on Windows, macOS, and Linux
✅ Easy to install and use
✅ 100% open source
Pro tip: Combine
git acpandgit lgto commit and instantly visualize your repo’s status!
Try It Now
Download or install the Git Macros Installer here:
