Most of the time, I use these git
commands :
git add src/ package.json
git commit -m "custom message"
git push origin "name_of_the_branch"
So I want to make a single alias command which should look like:
git_alias src/ package.json && "custom message" && name_of_the_branch
By running the above alias, it should run all three git
commands (add
, commit
and push
).
How can I do this?
Note
I know that I can make alias for any command (in this case, git commit
) as follows:
alias gc='git commit -m '