I want to create a new repository and duplicate my existing repository with git history. I googled and run following commands but does not work. The target repository contained the content but did not contain git commit history. Please let me know how I can fix it.
git push --mirror https://targetRepoURL