You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
println_not_silent "Merging upstream into local branch..."$gray
91
-
merge_upstream_command="git merge upstream/main"
92
-
run_command merge-upstream --command-from-var=merge_upstream_command --return-var=dummy --debug-title='Merging upstream repository into local branch'||return
93
89
90
+
if [ "$merge" ] && [ "$merge"!="true" ];then
91
+
git__setup_source_config "$merge"
92
+
fi
93
+
if [ "$source_branch" ];then
94
+
msg="Merging upstream '$source_branch' into local branch '$current_branch' ..."
95
+
println_not_silent "Merging upstream '$source_branch' into local branch '$current_branch' ..."$gray
# Initalizes repo, upstream and origin if not configured. Will always fetch upstream when called.
@@ -184,6 +196,11 @@ init()
184
196
printf"${yellow}default-branch:${normal} \n"
185
197
printf" With Only ${green}$func${normal}, ${yellow}default-branch${normal} will be configured to '${bold}main${normal}' . \n"
186
198
printf" With ${green}$func${yellow}${bold}--default-branch <value>${normal}${normal}, ${bold}default-branch '<value>'${normal} will be configured. \n"
199
+
printf"${yellow}merge upstream:${normal} \n"
200
+
printf" With ${green}$func${yellow}${bold}--merge${normal} the '${bold}git merge upstream/main${normal}' command will be runned. \n"
201
+
printf" With ${green}$func${yellow}${bold}--merge --push${normal} the ${gray}'git merge upstream/main; ${normal}${bold}git push${normal}' command will be runned. \n"
202
+
printf" With ${green}$func${yellow}${bold}--merge <branch>${normal}${normal} the '${bold}git merge upstream/${yellow}${bold}<branch>${normal}' command will be runned. \n"
203
+
printf" With ${green}$func${yellow}${bold}--merge <branch> --push${normal}${normal} the '${gray}git merge upstream/<branch>${normal}; ${bold}git push${normal}' command will be runned. \n"
187
204
printf"Show ${yellow}configs:${normal} \n"
188
205
printf"${green}$func${normal}${yellow}--configs${normal} will list all repository config key/values. ${yellow}--show${normal} or ${yellow}--settings${normal} can be used as well. \n"
189
206
printf"${green}$func${normal}${yellow}--show${normal} or ${yellow}--settings${normal} can be used as well. \n"
@@ -204,11 +221,10 @@ init()
204
221
set_upstream "-"
205
222
return
206
223
fi
207
-
208
224
if [ !"$is_repo" ];then
209
225
local yes_no="yes"
210
226
if [ !"$silent" ];then
211
-
ask yes_no $yellow"The current directory does not seem to be a git repository\nWould you like to initialize the repository and merge the remote upstream? (yes/no)"
227
+
ask yes_no $yellow"The current directory does not seem to be a git repository\nWould you like to initialize the repository and merge the remote upstream (Yes/No)?""-""yes"
0 commit comments