Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
本地集中交付-中化农业
deploy_script
Commits
8f6fb175
Commit
8f6fb175
authored
7 months ago
by
安平
Browse files
Options
Download
Email Patches
Plain Diff
更新工作区域逻辑
parent
5280b76e
main
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
sync_code_pro.sh
sync_code_pro.sh
+0
-6
No files found.
sync_code_pro.sh
View file @
8f6fb175
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help