re: Productivity 101: Git Aliases for Lazy Developers VIEW POST


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

code of conduct - report abuse