phatboislym

git script

Oct 29th, 2022 (edited)
1,427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. #!/bin/env bash
  2. echo "commit message"
  3. read message
  4. if [ "$#" -ge 1 ]
  5. then
  6.     git add $@
  7. else
  8.     git add .
  9. fi
  10. git commit -m "$message"
  11. git push
Advertisement
Add Comment
Please, Sign In to add comment