Reset approval
This commit is contained in:
parent
0e8df7e6d5
commit
8e12cbd1bb
8
g
8
g
|
@ -12,18 +12,22 @@ action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose
|
||||||
#exit
|
#exit
|
||||||
|
|
||||||
if [[ $action == "Add all && Commit && Push" ]]; then
|
if [[ $action == "Add all && Commit && Push" ]]; then
|
||||||
git add .
|
|
||||||
commit_message=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --title "$action" --inputbox "Enter the commit message:" 8 40)
|
commit_message=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --title "$action" --inputbox "Enter the commit message:" 8 40)
|
||||||
|
git add .
|
||||||
git commit -"m $commit_message"
|
git commit -"m $commit_message"
|
||||||
git push
|
git push
|
||||||
elif [[ $action == "Add all && Commit" ]]; then
|
elif [[ $action == "Add all && Commit" ]]; then
|
||||||
git add .
|
|
||||||
commit_message=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --title "$action" --inputbox "Enter the commit message:" 8 40)
|
commit_message=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --title "$action" --inputbox "Enter the commit message:" 8 40)
|
||||||
|
git add .
|
||||||
git commit -"m $commit_message"
|
git commit -"m $commit_message"
|
||||||
elif [[ $action == "Reset soft" ]]; then
|
elif [[ $action == "Reset soft" ]]; then
|
||||||
|
if DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --yesno "Do you wanna soft reset git?" 10 40; then
|
||||||
git reset
|
git reset
|
||||||
|
fi
|
||||||
elif [[ $action == "Reset hard" ]]; then
|
elif [[ $action == "Reset hard" ]]; then
|
||||||
|
if DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --yesno "Do you wanna hard reset git?" 10 40; then
|
||||||
git reset --hard
|
git reset --hard
|
||||||
|
fi
|
||||||
elif [[ $action == "Status" ]]; then
|
elif [[ $action == "Status" ]]; then
|
||||||
git status
|
git status
|
||||||
elif [[ $action == "Clone submodules" ]]; then
|
elif [[ $action == "Clone submodules" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue