Reputation:
I would like to code a bash script in order to create a github repository if the current folder doesn't have one.
Do you know how I can tell if the current folder already has a directory or not ?
Upvotes: 0
Views: 2380
Reputation: 466
git remote -v to see if the result contains "github.com"
git remote -v
Upvotes: 5