Skip to content

Commit 65dd174

Browse files
committed
moved git init position
1 parent 68d6370 commit 65dd174

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gitstart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ fi
170170
cd "$dir" || exit
171171

172172
# creating a remote github repo using gh
173-
printf "Creating a public remote repo..."
173+
printf "Creating a public remote repo %s" "$dir"
174+
echo ">>> Running git init."
175+
git init
174176
gh repo create --confirm --public || {
175177
echo "Not able to create a remote repo."
176178
exit 1
@@ -220,8 +222,7 @@ printf "# %s \n
220222
Please see license.txt.\n" "${repo}" >README.md
221223

222224
# git commands
223-
echo ">>> Running git init."
224-
git init
225+
225226
echo ">>> Adding README.md and .gitignore."
226227
git add .
227228
echo ">>> Commiting with a message 'first commit'."

0 commit comments

Comments
 (0)