Reputation: 1471
Much like this question, but here I do care about forkers and history.
I restarted a project from scratch, and now I want to append it as a commit to an existing git repository. How can I achieve this?
Upvotes: 5
Views: 384
Reputation: 1323145
Delete the .git
of the old repo, and in the new git repo:
cd /path/to/new/git/repo
git add --work-tree=/path/to/old/git/repo add -A .
Upvotes: 2