Last active
March 31, 2020 09:29
-
-
Save taniarascia/cb7d10cc3dbb5bcfaf974b2279cc5e37 to your computer and use it in GitHub Desktop.
Track, commit, and push to git origin and development with bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Had to change the first
${desc}
todesc
for it to work for me.That prompt is really handy.