Given ANY GitHub repository url string like:
git://github.com/some-user/my-repo.git or
[email protected]:some-user/my-repo.git or
https://github.com/some-user/my-repo.git What is the best way in bash to extract the repository name my-repo from any of the following strings? The solution MUST work for all types of urls specified above.
Thanks.