I accidentally created a copy of a repo with git clone --bare
and now I can't update from the original repo. This GitHub article advises --mirror
for updates:
If you want to mirror a repository in another location, including getting updates from the original, you can clone a mirror
git clone --mirror https://github.com/exampleuser/repository-to-mirror.git
How can I modify a --bare
clone into a --mirror
repo?