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.
run_command --command-in-var=git_config_command --return-var=branch_remote_origin --debug-title="Checking if branch.$current_branch.remote exist in git config"
85
+
if [ !"$branch_remote_origin" ];then
86
+
branch_remote_origin="origin"
87
+
println_not_silent "Setting branch remote origin to '$branch_remote_origin'"$gray
run_command --command-in-var=git_config_command --return-var=branch_remote_merge --debug-title="Checking if branch.$current_branch.merge exist in git config"
94
+
if [ !"$branch_remote_merge" ];then
95
+
branch_remote_merge="refs/heads/$current_branch"
96
+
println_not_silent "Setting branch remote merge to '$branch_remote_merge'"$gray
printf"${bold}smud $func${normal}: Initializes local repository and sets ${yellow}upstream, origin remotes, source-branch${normal} and ${yellow}default-branch${normal}\n"
188
209
printf"${yellow}upstream${normal}: \n"
189
-
printf" With Only ${green}$func${normal}, ${yellow}upstream${normal} '${bold}$default_upstream${normal}' will be configured if not configured yet. When configured the upstream will be fetched. \n"
210
+
printf" With Only ${green}$func${normal}, ${yellow}upstream-url${normal} '${bold}$default_upstream${normal}' AND ${yellow}upstream${normal}${bold}'upstream/main'${normal} will be configured if not configured yet. When configured the upstream will be fetched. \n"
190
211
printf" With ${green}$func${bold}<value>${normal}, ${yellow}upstream${normal} '${bold}<value>${normal}' will be configured before upstream is fetched. \n"
191
212
printf" With ${green}$func${bold}${yellow}${bold}--upstream-url <value>${normal}, ${yellow}upstream${normal} '${bold}<value>${normal}' will be configured before upstream is fetched. \n"
192
213
printf" With ${green}$func${yellow}${bold}-${normal}, ${yellow}upstream${normal} will be removed. \n"
0 commit comments