testing new script

This commit is contained in:
Mohammad-Ali Minaie
2018-11-02 22:03:28 -04:00
parent 5a203384d8
commit 8af16328fb

24
push.sh
View File

@@ -2,11 +2,25 @@
clear clear
git status git status
#git add --all :/
#IFS= read -r -p "Enter commit message: " com
#git commit -m "${com}"
#echo $(git branch)
git branch
gitBranch=$(git branch)
read -p "Is this the correct branch (y/n)?" CONT
if [ "$CONT" = "y" ]; then
git add --all :/ git add --all :/
IFS= read -r -p "Enter commit message: " com IFS= read -r -p "Enter commit message: " com
git commit -m "${com}" git commit -m "${com}"
#echo $(git branch) git push nmd ${gitBranch}
git branch git push github ${gitBranch}
IFS= read -r -p "Enter Branch name: " com1 else
git push nmd ${com1} echo "Please switch to the correct branch to continue"
git push github ${com1} fi
#git push nmd ${com1}
#git push github ${com1}