DEV Community

Discussion on: Bash tip of the day: lazygit

Collapse
 
jimmymcbride profile image
Jimmy McBride

I've created some bash scripts similar to Zen's as well:

Filename: gitit

git add .
git commit -m "$1"
git push

Example: gitit "init commit"

I also have one for creating new branches and pushing their upstream:

Filename: branch

git checkout -b "$1"
git push origin -u "$1"

I always use branch to make new branches that way when I use gitit to push up so it works without fail. I have a few more, but those are my most used bash scripts I use in my git flow

Some comments have been hidden by the post's author - find out more