Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell if a git repo is a mirror?

Tags:

git

I'm trying to get my head around git mirroring. Given a working copy, how do I determine whether it is a mirror (or is mirroring) another repository?

Cheers.

like image 202
user5877732 Avatar asked Feb 07 '23 20:02

user5877732


1 Answers

try:

git config --list | grep remote

remote.origin.url=<git remote url>
remote.origin.fetch=+refs/*:refs/*
remote.origin.mirror=true

I don't understand the subtleties listed above, but this worked for me.

like image 75
git_student Avatar answered Feb 09 '23 10:02

git_student