Skip to content

Instantly share code, notes, and snippets.

@thavrythul

thavrythul/svp Secret

Last active July 23, 2022 08:29
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 thavrythul/409a3cfb884cf7cc3f331fa3d53d8779 to your computer and use it in GitHub Desktop.
Save thavrythul/409a3cfb884cf7cc3f331fa3d53d8779 to your computer and use it in GitHub Desktop.
svp (){
# asking for commit messages
echo "Give your commit message?"
read msg
# pull to update from the main branch first
git pull origin main
# commit and push
git add .
git commit -m "$msg"
git push
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment