git add .
git commit 'fix careless mistake, typo'
git push
I often do above 3 commands to push my code but it kinda tedious sometime to fix very minor issue. Can I run those 3 at once?
git add .
git commit 'fix careless mistake, typo'
git push
I often do above 3 commands to push my code but it kinda tedious sometime to fix very minor issue. Can I run those 3 at once?
A bad answer:
git add . && git commit -m 'fix careless mistake, typo' && git push
Without the push:
git -am 'a message'
If you are using git in a shell that support alias like bash you can do:
alias autogit="function _autogit(){git add . && git commit -m $1 && git push};_autogit"
Anyway I think you should pull before pushing.