-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathgit.sh
More file actions
20 lines (20 loc) · 599 Bytes
/
git.sh
File metadata and controls
20 lines (20 loc) · 599 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# optional color variables
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
clear
echo "${red}remote: -----> ${green}Tracking all files...${reset}";
echo -en '\n';
git add .;
echo -en '\n';
echo "${red}remote: -----> ${green}moving all files to commit...${reset}";
echo -en '\n';
read -p "${green}Enter the push reason: ${reset}" push_type;
git commit -m "$push_type";
echo -en '\n';
echo "${red}remote: -----> ${green}pushing all files to branch...${reset}";
echo -en '\n';
git push all master;
echo -en '\n';
echo "${red}remote: -----> ${green}git push success...${reset}";
echo -en '\n';