updating master with new script
This commit is contained in:
26
push.sh
26
push.sh
@@ -2,11 +2,25 @@
|
|||||||
|
|
||||||
clear
|
clear
|
||||||
git status
|
git status
|
||||||
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)
|
#echo $(git branch)
|
||||||
git branch
|
git branch
|
||||||
IFS= read -r -p "Enter Branch name: " com1
|
gitBranch=$(git symbolic-ref --short HEAD)
|
||||||
git push nmd ${com1}
|
|
||||||
git push github ${com1}
|
read -p "Is this the correct branch (y/n)?" CONT
|
||||||
|
if [ "$CONT" = "y" ]; then
|
||||||
|
|
||||||
|
git add --all :/
|
||||||
|
IFS= read -r -p "Enter commit message: " com
|
||||||
|
git commit -m "${com}"
|
||||||
|
git push nmd ${gitBranch}
|
||||||
|
git push github ${gitBranch}
|
||||||
|
else
|
||||||
|
echo "Please switch to the correct branch to continue"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#git push nmd ${com1}
|
||||||
|
#git push github ${com1}
|
||||||
|
|||||||
Reference in New Issue
Block a user