In the fast export there is the --anonymise capability. 

Have a look at that.

https://git-scm.com/docs/git-fast-export#git-fast-export---anonymize
https://git-scm.com/docs/git-fast-export#_anonymizing

Philip
  ----- Original Message ----- 
  From: Paul Smith 
  To: git-users@googlegroups.com 
  Sent: Wednesday, September 27, 2017 5:52 PM
  Subject: [git-users] Recreating repo structure without content?


  Hi all. I'm wondering if anyone has a script or something that will allow me 
to create a new repository which recreates the commit structure (parent/child, 
branches, merges) of an existing repository, but with obfuscated content. It's 
OK if this is slow.


  My goal is to provide a test case that can reproduce a failure that appears 
only in our long-lived and complex Git repository, without having to hand over 
the actual content of the Git repository.


  Obviously the SHAs would not be the same, but that's not relevant (I'm sure). 
My suspicion is that the problem is caused by the very complex spaghetti 
branching structure we used to live with back in 2011/2012, before we imposed 
sanity.


  Thanks for any pointers!

  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to