DEV Community

Discussion on: Productivity 101: Git Aliases for Lazy Developers

dsbarnes profile image
dsbarnes • Edited on

glo is what I needed in my life - Thank you.

Getting a little more outlandish with this, I often have a need to do git checkout origin/Whatever

We can do this:

studentBranch() {
    git checkout origin/$1

alias sb=studentBranch

Aliasing with functions allows us to pass parameters to our aliases :D

mojemoron profile image
Micheal Ojemoron Author

Wow, l like this 👏🏻