Commit 8f6fb175 authored by 安平's avatar 安平
Browse files

更新工作区域逻辑

parent 5280b76e
No related merge requests found
......@@ -50,14 +50,8 @@ if [[ -n "$project" ]]; then
fi
echo -e '\033[1;32m <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 同步完成 \033[0m'
# git pull ${target_gitlab_address} 这个操作不行
git remote -v
origin=$(git remote -v|grep fetch|awk '{print $1}')
git config --local credential.helper store && git config --local user.username "hand-srm-user" && git config --local user.password "glpat-73Jsusq8FG4EcM5JkPPJ"
git remote -v
git config --list
git config credential.helper
msg=$(if [[ -n "$branch" ]]; then echo "$origin $branch"; else echo "--all"; fi)
echo $msg
git pull $(if [[ -n "$branch" ]]; then echo "$origin $branch"; else echo "--all"; fi)
echo -e '\033[1;32m <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 工作区更新完成 \033[0m'
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment