I have a private repository that has old credentials and other private information in the git history. I am contracting with an outside party to do some work on the codebase, but I do not want them to have access to the history.
I know that I can give them a copy of the repository without the .git/
folder, but I also want to make it as easy as possible for them to use git
while they work, and be able to merge their branch back into my master branch when they are done.
I was thinking of just making a clone with --depth 1
, as shown here and here, and sending them a tarball of that local clone. Is there a better way to do this?