Skip to content

Instantly share code, notes, and snippets.

@taniarascia
taniarascia / git-deploy.bash
Last active March 31, 2020 09:29
Track, commit, and push to git origin and development with bash script
#!/bin/bash
read -r -p 'Commit message: ' ${desc} # prompt user for commit message
git add . # track all files
git add -u # track all deleted files
git commit -m "$desc" # commit with message
git push origin master # push to origin
git push production master # push to development server