Reset approval
This commit is contained in:
parent
0e8df7e6d5
commit
8e12cbd1bb
14
g
14
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
|
||||||
git reset
|
if DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --yesno "Do you wanna soft reset git?" 10 40; then
|
||||||
|
git reset
|
||||||
|
fi
|
||||||
elif [[ $action == "Reset hard" ]]; then
|
elif [[ $action == "Reset hard" ]]; then
|
||||||
git reset --hard
|
if DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --yesno "Do you wanna hard reset git?" 10 40; then
|
||||||
|
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