Skip to content

Commit 227fa04

Browse files
author
freddii
committed
update
1 parent 8efd8d2 commit 227fa04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: git-create-repo.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#Usage:
33
#git-create-repo.sh GithubUsername NewReponame
4-
user="" #github username
4+
user=$(git config user.name) #github username
55
github_token="" #github token
66
repo_name=$1
77

@@ -26,8 +26,8 @@ git init
2626
if [ ! -f "$PWD/README.md" ]; then
2727
echo "# $repo_name" > README.md
2828
fi
29-
git add .
30-
git commit -m "First commit"
29+
#git add .
30+
#git commit -m "First commit"
3131
#
3232
#param="{\"name\":\"$repo_name\"}"
3333
#curl -u $user https://api.github.com/user/repos -d $param

0 commit comments

Comments
 (0)