We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d6370 commit 65dd174Copy full SHA for 65dd174
gitstart
@@ -170,7 +170,9 @@ fi
170
cd "$dir" || exit
171
172
# creating a remote github repo using gh
173
-printf "Creating a public remote repo..."
+printf "Creating a public remote repo %s" "$dir"
174
+echo ">>> Running git init."
175
+git init
176
gh repo create --confirm --public || {
177
echo "Not able to create a remote repo."
178
exit 1
@@ -220,8 +222,7 @@ printf "# %s \n
220
222
Please see license.txt.\n" "${repo}" >README.md
221
223
224
# git commands
-echo ">>> Running git init."
-git init
225
+
226
echo ">>> Adding README.md and .gitignore."
227
git add .
228
echo ">>> Commiting with a message 'first commit'."
0 commit comments