How to move files from a subdirectory into parent directory in mercurial

user3757174

I have a nested directory like this...

dir1
   dir2
     file1.txt
     file2.txt
     file3.txt

I would like to move all the files within dir2 to dir1, like so...

dir1
  file1.txt
  file2.txt
  file3.txt

What's the best way of doing this? I couldn't find anything in mercurial documentation.

Lazy Badger

Read hg help move and use after reading all text hg move dir1/dir2/file1.txt dir1/dir2/file2.txt dir1/dir2/file3.txt dir1/

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How to move directory into a directory with the same name?

来自分类Dev

How to get parent folder of a directory

来自分类Dev

How can I get the Mercurial Changeset ID from a revision number?

来自分类Dev

Mercurial: How can a I make a snapshot of my working directory without doing a changeset?

来自分类Dev

Android: copying files from one directory to another

来自分类Dev

List files in a directory from a runnable jar

来自分类Dev

How to import data by csv in bulk from files in one directory using Cypher in Neo4j?

来自分类Dev

Shell: how check if no .txt files exist in the directory?

来自分类Dev

Read the list of msi files from a directory and save them in the array

来自分类Dev

Remove files by extension from all levels of a directory subtree without destroying the directory structure

来自分类Dev

How can I show the size of all files in my ~/.cache directory?

来自分类Dev

How to prevent codeigniter from creating Memcache directory

来自分类Dev

Mercurial : how to deal with rejected pull request?

来自分类Dev

Directory.Move():拒绝访问路径

来自分类Dev

Delete csv files having less than 10 entries from a particular directory in R

来自分类Dev

cmake,在全局变量(以及PARENT_SCOPE或add_subdirectory替代方案)的概念中迷失了

来自分类Dev

cmake,在全局变量(以及PARENT_SCOPE或add_subdirectory替代方案)的概念中迷失了

来自分类Dev

How to read the text file from the Application Directory text file

来自分类Dev

How to use Nginx alias to load PHP from other directory?

来自分类Dev

Python 3: How to move an item from list x to list y and remove it from list x?

来自分类Dev

Count files in directory, but exclude subdirectories

来自分类Dev

Move and rename multiple files using git

来自分类Dev

full hard drive need to move files centos

来自分类Dev

Files.move更改文件权限

来自分类Dev

Importing from another directory

来自分类Dev

How to retrieve image files from mongodb to html page

来自分类Dev

How to prevent files from being checked out to the default changelist in perforce?

来自分类Dev

Match subdirectory

来自分类Dev

Groovy count number of files matches regex in the directory

Related 相关文章

  1. 1

    How to move directory into a directory with the same name?

  2. 2

    How to get parent folder of a directory

  3. 3

    How can I get the Mercurial Changeset ID from a revision number?

  4. 4

    Mercurial: How can a I make a snapshot of my working directory without doing a changeset?

  5. 5

    Android: copying files from one directory to another

  6. 6

    List files in a directory from a runnable jar

  7. 7

    How to import data by csv in bulk from files in one directory using Cypher in Neo4j?

  8. 8

    Shell: how check if no .txt files exist in the directory?

  9. 9

    Read the list of msi files from a directory and save them in the array

  10. 10

    Remove files by extension from all levels of a directory subtree without destroying the directory structure

  11. 11

    How can I show the size of all files in my ~/.cache directory?

  12. 12

    How to prevent codeigniter from creating Memcache directory

  13. 13

    Mercurial : how to deal with rejected pull request?

  14. 14

    Directory.Move():拒绝访问路径

  15. 15

    Delete csv files having less than 10 entries from a particular directory in R

  16. 16

    cmake,在全局变量(以及PARENT_SCOPE或add_subdirectory替代方案)的概念中迷失了

  17. 17

    cmake,在全局变量(以及PARENT_SCOPE或add_subdirectory替代方案)的概念中迷失了

  18. 18

    How to read the text file from the Application Directory text file

  19. 19

    How to use Nginx alias to load PHP from other directory?

  20. 20

    Python 3: How to move an item from list x to list y and remove it from list x?

  21. 21

    Count files in directory, but exclude subdirectories

  22. 22

    Move and rename multiple files using git

  23. 23

    full hard drive need to move files centos

  24. 24

    Files.move更改文件权限

  25. 25

    Importing from another directory

  26. 26

    How to retrieve image files from mongodb to html page

  27. 27

    How to prevent files from being checked out to the default changelist in perforce?

  28. 28

    Match subdirectory

  29. 29

    Groovy count number of files matches regex in the directory

热门标签

归档