I am developing a web site and I use git to update the site, and I have two branch so it goes:
- git add .
- git commit "something"
- git push
- git checkout "prod"
- git merge --no-ff dev
- git push
- git checkout "dev"
I need a lazygit function which would looks like
function lazygit(){
git add .
git commit "$1"
git push
git checkout "prod"
git merge --no-ff dev
git push
git checkout "dev"
}
And would be use like
lazygit( "CSS UPDATE" )
Now my question is, how can I save this function into file or whatsoever so I can use it anywhere ?
Thank's alot