DEV Community

Discussion on: Be more productive with shell aliases

Collapse
 
sergsoares_15 profile image
Sergio Soares

Thanks Man, really like your aliases. Mainly goop (will use now).

One mine that i really like is:

alias new-feature="git reset --hard HEAD && git checkout master && git pull origin master && git checkout -b $@"

I throw actual changes (if need i stash), go to master get all changes from my teammates and create a new branch with actual changes.

This improve a lot my workflow.

Collapse
 
easyaspython profile image
Dane Hillard

Nice! My upr is sort of similar, but favors stashing existing changes and doesn't create a new branch. Maybe I can combo that with another to include the branch creation part, because that's usually what I do next! Thanks for sharing 🤗