1

I'm working on a contract for a company that has their own git repository. I'd like to allow my team to work on the project, and then push all changes to the company repository all under one account (no history from other team members). Is this possible? Or am I stuck manually copying the files over into the directory and committing the changes?

adam3039
  • 1,171
  • 14
  • 27

1 Answers1

0

then push all changes to the company repository all under one account

Yes, if you create (each time you want to push back) a new repo from a git filter-branch applied to your current repo (with commits from multiple collaborator)

A filter-branch will be able to rewrite the committer and author information in order to rewrite the repo as one done by only one user.
See this question as an example.

Make sure to try and preserve the commit date as well.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250