user7586561
user7586561

Reputation:

How to detect if a folder is a github repository

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

Answers (1)

Akagi201
Akagi201

Reputation: 466

git remote -v to see if the result contains "github.com"

Upvotes: 5

Related Questions