Answers for "how to push one commit to git remote"

3

git add commit push one command

# The following command does not add new files, only updated pre-existing ones.
git commit -am "commit all the things" && git push
Posted by: Guest on October-22-2020
1

git add, commit and push in one command

git config --global alias.cmp '!f() { git add -A && git commit -m "$@" && git push; }; f'
Posted by: Guest on October-17-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language