Git Aliases that Save Time.

For quite some time now I’ve been using certain aliases in my terminal that make my git workflow go faster. Well, git commands aren’t really that long but when you only need to type two letters,
and that’s enough to 🚀.

Your lazy self cannot thank you enough.

First, a few items in the bash file.
(If you’re using a different shell than bash then the filename and directory might differ)

.bashrc (or .bash_profile on macos).

Then, it’s showtime in the repo.

Couldn’t have pushed out a feature sooner. :)

Also, do note these aliases are somewhat generic. Means even though the remote defaults to the origin different remotes can still be specified. For example $ gp heroku master where the syntax is $ gp <remote> <branch>. This works for a different branch in the same origin as well. Say you’re on a local master branch, to push up commits to a remote develop branch in the origin you could say $ gp origin master:develop.

I dream of falling down a rabbit hole where I’d slay dragons for a living.

I dream of falling down a rabbit hole where I’d slay dragons for a living.