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 the file is already being tracked then you do not need to run git add, you can simply write git commit -am 'your message'
git add
git commit -am 'your message'
If you do not want to write a commit message you might consider doing something like
git commit --allow-empty-message -am ''