File: Manually_moving_annex_objects_to_new_repo.mdwn

package info (click to toggle)
git-annex 10.20250721-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 74,484 kB
  • sloc: haskell: 90,982; javascript: 9,103; sh: 1,469; makefile: 213; perl: 137; ansic: 44
file content (12 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
I want to create a repo with the contents of an old repo, but with a fresh commit history, etc. I do not care about preserving the old repo.

However, I just want to make sure that the following steps will not result in the new repo being broken in some way:

1. Create a new git annex repo.
2. Copy all of the symlinks from the old repo to the new one.
3. Move .git/annex/objects from the old repo to the new one.
4. Then "git annex add" everything in the new repo and commit.

Please let me know also if there is a better way to achieve the same results.

Thanks for your help.