Is there any way to use these three commands in one?
git add .
git commit -a -m \"commit\" (do not need commit message either)
git push
Som
If you're using a Mac:
Start up Terminal Type "cd ~/" to go to your home folder
Type "touch .bash_profile" to create your new file.
Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit).
Copy & Paste the below into the file:
function lazygit() { git add . git commit -a -m "$1" git push }
After this, restart your terminal and simply add, commit and push in one easy command, example:
lazygit "This is my commit message"