I frequently clone github repos and try them in my computer. Unfortunately github repos can have the same name as another user's repo name.
For example:
https://github.com/user1/app_name.git
https://github.com/user2/app_name.git
When I clone a repo in terminal like
git clone https://github.com/user1/app_name.git
it saves the repo under name after the slash like
app_name
If I clone the second repo, I get the repo exists
message and cloning repo aborts.
I just noticed that, and I want to know which repos aborted in that way.
To find them I did something like
history | grep github.com
but this lists hundreds of lines and it's difficult to pick up the repos with the same app_name
and different user_name
.
It must be a very easy task for a regex query, but how?