Reputation: 1480
Is there a way to check if a git repo exists using a bash or csh script? I know that we can use git ls-remote <repository>
to check the existence of the remote repo. But I'd like to somehow do this programatically in a shell script.
Upvotes: 8
Views: 10762