id | title | permalink | layout | category | prev | next |
---|---|---|---|---|---|---|
cli-move |
Move |
docs/cli-move.html |
docs |
CLI Reference |
cli-merge.html |
cli-remote.html |
Moves a file/directory that's part of a tracked component to a new location. This command will update the .bitmap file accordingly.
bit move|mv <from> <to>
bit move src/foo/bar/index.js src/components/new/location/new-file-name.js
bit move src/foo src/components/new/location/foo
Similar to Git, you can also use move
to rename files within a component.
$ bit move <oldDirName> <newDirName>
$ bit move <oldFileName> <newFileName>