DEV Community

Discussion on: Productivity 101: Git Aliases for Lazy Developers

Collapse
 
dsbarnes profile image
dsbarnes • Edited

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

Collapse
 
mojemoron profile image
Micheal Ojemoron

Wow, l like this 👏🏻