Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 625 Bytes

File metadata and controls

25 lines (20 loc) · 625 Bytes

Script for updating the file to GitHub by taking filename as input.

RED='\033[0;31m'
NC='\033[0m' 
GREEN='\033[0;32m'
BLUE='\033[0;34m'
echo -e "\n****** Welcome to ${RED}Git${NC} Script by ${GREEN}BAZ${NC} **$
echo "This script will upadte file to GtHub by taking filename input!"
ls
git status
echo -e "\n ${BLUE}Please enter file name you want to upload to remote re$
read fname
git add $fname
git commit -m "update on file $fname"
git push origin master
echo "     "
echo -e "--------- ${BLUE}Completed update on Git ------"

please run command ls to see list

  • // For Running, type bash gitBach.sh