-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-do-it
More file actions
executable file
·29 lines (22 loc) · 821 Bytes
/
git-do-it
File metadata and controls
executable file
·29 lines (22 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Daniel Melo
# this thing updates from remove repository, adds modifications to stage,
# commits it and pushes it to the remote again. Such commands!
clear;
txtbld=$(tput bold);
txtrst=$(tput sgr0);
reset=${txtrst};
echo "$txtbld> Updating from remote repository...$reset";
git pull origin master;
printf "\n$txtbld> Adding all the modifications evil master did to stage $reset";
git add --all;
printf "$txtbld\n>> Gibe commit message plox! $reset\n: ";
printf "\t";
read message;
printf "\nSuch message! Much appreciations!\n...";
printf "\n\n$txtbld> Commiting changes... $reset";
git commit -m "$message";
printf "\n$txtbld> Updating changes to remote origin -> master $reset\n"
git push origin master;
printf "\n$txtbld Me did it! Me are good shell script, master! Gibe moar CPU! $reset";
echo "";