Skip to content

Instantly share code, notes, and snippets.

@StanleyMasinde
Created May 23, 2019 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StanleyMasinde/9c575abf5c94a59452ad78986b12f413 to your computer and use it in GitHub Desktop.
Save StanleyMasinde/9c575abf5c94a59452ad78986b12f413 to your computer and use it in GitHub Desktop.
a simple script to automate normal git actions
#!/bin/bash
echo "Starting the precommit process"
git add --all
echo "All changes staged"
echo "In yhe next screen add your commit message use nano syntax"
git commit
echo "All changes have commited"
git pull
echo "latest changes received"
git push
echo "Tada all done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment