Boost Your Git Productivity with 15 Essential Git Macros (Cross-Platform Installer)

Boost Your Git Productivity with 15 Essential Git Macros (Cross-Platform Installer)

Codeable.io
blank

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

MacroExampleDescription
git acpgit acp "message"Add, commit, and push current branch
git cgit c "message"Commit staged files
git pushcgit pushcPush current branch
git upgit upPull with rebase
git lggit lgOne-line graph log
git undogit undoUndo last commit, keep changes
git cbgit cb new-branchCreate & switch to branch
git cleanupgit cleanupDelete merged branches
git stashpopgit stashpopStash & reapply changes
git dfsgit dfsDiff staged changes
git sgit sShort status
git amendgit amendAmend last commit
git prevgit prevSwitch to previous branch
git fpgit fpFetch & prune
git tagsrgit tagsrShow 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

blank

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 acp and git lg to commit and instantly visualize your repo’s status!

Try It Now

Download or install the Git Macros Installer here:

👉 https://github.com/krasenslavov/git-macros-installer

Leave a Reply

Your email address will not be published. Required fields are marked *