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.
Copy file name to clipboardExpand all lines: smud-cli/functions-init.sh
+36-5Lines changed: 36 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -115,13 +115,21 @@ init()
115
115
{
116
116
if [ "$help" ];then
117
117
func=${1:-init}
118
-
echo"${bold}smud $func${normal}: Initializes local repository and sets upstream and origin remotes"
119
-
printf"With Only ${green}$func${normal}, Upstream '$default_upstream' will be configured if not configured yet. When configured the upstream will be fetched. \n"
120
-
printf"With ${green}$func${bold}<value>${normal}, Upstream '<value>' will be configured before upstream is fetched. \n"
121
-
printf"With ${green}$func${bold}--upstream-url <value>${normal}, Upstream '<value>' will be configured before upstream is fetched. \n"
122
-
printf"With ${green}$func${bold}-${normal}, Upstream will be removed. \n"
118
+
echo"${bold}smud $func${normal}: Initializes local repository and sets upstream, origin remotes and source-branch"
119
+
printf"Upstream: \n"
120
+
printf" With Only ${green}$func${normal}, Upstream '$default_upstream' will be configured if not configured yet. When configured the upstream will be fetched. \n"
121
+
printf" With ${green}$func${bold}<value>${normal}, Upstream '<value>' will be configured before upstream is fetched. \n"
122
+
printf" With ${green}$func${bold}--upstream-url <value>${normal}, Upstream '<value>' will be configured before upstream is fetched. \n"
123
+
printf" With ${green}$func${bold}-${normal}, Upstream will be removed. \n"
124
+
printf"source-branch: \n"
125
+
printf" With Only ${green}$func${normal}, source-branch will be configured to 'upstream/$default_branch' . \n"
126
+
printf" With ${green}$func${bold}${green}--source-branch${normal} <value>${normal}, source-branch '<value>' will be configured. \n"
127
+
printf"Show configs: \n"
128
+
printf"${green}$func${normal}${green}--configs${normal} will list all repository config key/values. ${green}--show${normal} or ${green}--settings${normal} can be used as well. \n"
129
+
printf"${green}$func${normal}${green}--show${normal} or ${green}--settings${normal} can be used as well. \n"
0 commit comments