2019-03-27 15:15:03 +00:00
|
|
|
$ cd ~/annex
|
|
|
|
$ git mv big_file my_cool_big_file
|
|
|
|
$ mkdir iso
|
|
|
|
$ git mv debian.iso iso/
|
|
|
|
$ git commit -m moved
|
2011-02-27 16:45:48 +00:00
|
|
|
|
|
|
|
You can use any normal git operations to move files around, or even
|
|
|
|
make copies or delete them.
|
|
|
|
|
|
|
|
Notice that, since annexed files are represented by symlinks,
|
|
|
|
the symlink will break when the file is moved into a subdirectory.
|
|
|
|
But, git-annex will fix this up for you when you commit --
|
|
|
|
it has a pre-commit hook that watches for and corrects broken symlinks.
|
2014-07-25 07:57:21 +00:00
|
|
|
|
2014-08-12 18:29:36 +00:00
|
|
|
(Note that if a repository is in direct mode, you can't run normal git
|
|
|
|
commands in it. Instead, just move the files using non-git commands, and
|
2015-01-20 16:43:18 +00:00
|
|
|
`git annex add` and `git annex sync`.)
|