Over a million developers have joined DZone.

Automatically Push A Git Repo On Commit

·
// description of your code here


cd my_repo
echo 'git push' > .git/hooks/post-commit
chmod 755 .git/hooks/post-commit
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}