Package: git for example You have a tree
dir/ dir/file dir2/ You can move file from dir to dir2: git mv dir/file dir2/ But if You make a typo in directory name or directory hasn't created yet git will do something wrong: git mv dir/file dir3/ ^ - directory! dir/file will be renamed to file(!) with name 'dir3' apache:[~]$ mdcd tmp/abc apache:[~/tmp/abc]$ git init Initialized empty Git repository in /home/dimka/tmp/abc/.git/ apache:[~/tmp/abc]$ mkdir dir1 dir2 apache:[~/tmp/abc]$ touch dir1/file apache:[~/tmp/abc]$ git add dir1/file apache:[~/tmp/abc]$ git commit -am"test" [master (root-commit) e486796] test 0 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 dir1/file apache:[~/tmp/abc]$ git ls-files dir1/file apache:[~/tmp/abc]$ git mv dir1/file dir2/ apache:[~/tmp/abc]$ git ls-files dir2/file apache:[~/tmp/abc]$ git mv dir2/file dir3/ apache:[~/tmp/abc]$ git ls-files dir3 -- . ''`. Dmitry E. Oboukhov : :’ : email: un...@debian.org jabber://un...@uvw.ru `. `~’ GPGKey: 1024D / F8E26537 2006-11-21 `- 1B23 D4F8 8EC0 D902 0555 E438 AB8C 00CF F8E2 6537
signature.asc
Description: Digital signature