Tyleo-Dev-ShellScripting-Ol.../GITScripts/gitlabmaster.sh

11 lines
482 B
Bash
Raw Normal View History

2024-02-18 21:29:57 +00:00
# Script for adding, commiting and pushing on gitlab or github.
echo "Adding all"
sleep 1
git add * || echo "Adding failed, check your files !"
echo "Commit everything, enter your message !"
sleep 1
git commit || echo "Commiting failed, check your connection and your git clone"
echo "Pushing ! Enter your ID and Pass !"
git push || echo "Incorrect password, login or bad internet connection (upper 100ms ping)"
echo "Is done ! your master has been updated, active folder is `pwd`"