Added -r flag in initify and cinitify to not auto-pull
This commit is contained in:
parent
b98730f6f9
commit
c88d2bb540
27
bashrc
27
bashrc
@ -161,9 +161,13 @@ function cinitify(){
|
|||||||
git remote add oOrigin git@10.0.1.200:$1/$2.git
|
git remote add oOrigin git@10.0.1.200:$1/$2.git
|
||||||
git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git
|
git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git
|
||||||
git remote -v
|
git remote -v
|
||||||
echo -n "Pull from: "
|
while getopts ":r" VALUE "$@"; do
|
||||||
read from
|
if [ ! "$VALUE" = "r" ] ; then
|
||||||
git pull $FROM
|
echo -n "Pull from: "
|
||||||
|
read from
|
||||||
|
git pull $FROM
|
||||||
|
fi
|
||||||
|
done
|
||||||
git co master
|
git co master
|
||||||
}
|
}
|
||||||
export -f cinitify
|
export -f cinitify
|
||||||
@ -175,20 +179,17 @@ function initify(){
|
|||||||
git remote add oOrigin git@10.0.1.200:$1/$2.git
|
git remote add oOrigin git@10.0.1.200:$1/$2.git
|
||||||
git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git
|
git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git
|
||||||
git remote -v
|
git remote -v
|
||||||
echo -n "Pull from: "
|
while getopts ":r" VALUE "$@"; do
|
||||||
read from
|
if [ ! "$VALUE" = "r" ] ; then
|
||||||
git pull $FROM
|
echo -n "Pull from: "
|
||||||
|
read from
|
||||||
|
git pull $FROM
|
||||||
|
fi
|
||||||
|
done
|
||||||
git co master
|
git co master
|
||||||
}
|
}
|
||||||
export -f initify
|
export -f initify
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Color definitions
|
#Color definitions
|
||||||
txtblk='\[\e[0;30m\]' # Black - Regular
|
txtblk='\[\e[0;30m\]' # Black - Regular
|
||||||
txtred='\[\e[0;31m\]' # Red
|
txtred='\[\e[0;31m\]' # Red
|
||||||
|
Loading…
Reference in New Issue
Block a user