Recently, I have a strange behavior when trying to clone a remote repository to my local machine using git bash as it does not clone the specified remote repository but it clones one of my docker project repo. For example: I clone a remote repository using the command below:
Holyken@HolykenComputer MINGW64 /e/test_repo
$ git clone https://github.com/LearningJournal/Kafka-Streams-Real-time-Stream-Processing.git
Cloning into 'Kafka-Streams-Real-time-Stream-Processing'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 26 (delta 0), reused 26 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (26/26), 307.43 KiB | 881.00 KiB/s, done.
However, it cloned my docker project. I checked the remote repo and it returns 3 origin results and two of them point to the same repository of my docker project:
Holyken@HolykenComputer MINGW64 /e/test_repo
$ cd Kafka-Streams-Real-time-Stream-Processing/
Holyken@HolykenComputer MINGW64 /e/test_repo/Kafka-Streams-Real-time-Stream-Processing (master)
$ git remote -v
origin https://holykens:git_credentials@github.com/holykens/docker-react.git (fetch)
origin https://holykens:git_credentials@github.com/holykens/docker-react.git (push)
origin https://github.com/LearningJournal/Kafka-Streams-Real-time-Stream-Processing.git (push)
I tried to remove all the origin to clone again but it just removed the repo Kafka-Streams-Real-time-Stream-Processing and the origin pointing to my docker project still exists.
Holyken@HolykenComputer MINGW64 /e/test_repo/Kafka-Streams-Real-time-Stream-Processing (master)
$ git remote remove origin
Holyken@HolykenComputer MINGW64 /e/test_repo/Kafka-Streams-Real-time-Stream-Processing (master)
$ git remote -v
origin https://holykens:git_credentials@github.com/holykens/docker-react.git (fetch)
origin https://holykens:git_credentials@github.com/holykens/docker-react.git (push)
How can I fix this issue to clone the repo Kafka-Streams-Real-time-Stream-Processing to my local machine ?
Thanks