DEV Community

Discussion on: 4 Git shortcuts that define my workflow

Collapse
 
tnolte profile image
Tim Nolte • Edited

I setup a a bunch of aliases for my git workflow as week, but actually have them as aliases for git specifically, in my .gitconfig file. And example for me when creating a new feature branch would be to call git feature <Jira#-Decription>, which uses my git alias:

feature = "!fb() { git co-m; git pull; git co-b feature/$1; }; fb"
Enter fullscreen mode Exit fullscreen mode

Which in turn, like you, uses other aliases I've defined in git. Like git co-m is an alias I setup that checks out the main branch.

I'm going to need to go through yours again and see where I can maybe make some improvements to my own. Thanks for sharing!