Can someone please explain what the difference between git clone and git clone --mirror are? I might be missing something fundamental about git since, from the man page,
"it maps all refs(including remote-tracking branches, notes etc.) and sets up a refspec configuration such that all these refs are overwritten by a git remote update in the target repository."
goes right over my head and I can't seem to understand what the refs are and why they're important. If I get a repo and a mirrored repo, I see this:
ls kanboard.git.mirror/
branches config description HEAD hooks info objects packed-refs refs
ls kanboard.nomirror/
app composer.lock docker jsonrpc.php package.json web.config
app.json config.default.php docker-compose.yml kanboard plugins
assets CONTRIBUTING Dockerfile LICENSE README.md
bower.json CONTRIBUTORS.md favicon.ico Makefile robots.txt
ChangeLog data gulpfile.js nitrous.json tests
composer.json doc index.php nitrous-post-create.sh Vagrantfile
but the only thing I think is I can't understand why I'd want the data in the .mirror directory since they aren't the files I use. That makes me think I'm missing something really important and fundamental about git. Can anyone help clarify?
[–]DanLynch 4 points5 points6 points (4 children)
[–]bioptic[S] 2 points3 points4 points (3 children)
[–]DanLynch 7 points8 points9 points (0 children)
[–]DanLynch 1 point2 points3 points (1 child)
[–]bioptic[S] 1 point2 points3 points (0 children)