Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 824 Bytes

cli-move.md

File metadata and controls

40 lines (30 loc) · 824 Bytes
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.

Synopsis

bit move|mv <from> <to>

Examples

Move a file that's part of a tracked component

bit move src/foo/bar/index.js src/components/new/location/new-file-name.js

Move a directory that's part of a tracked component

bit move src/foo src/components/new/location/foo

Rename a component

Similar to Git, you can also use move to rename files within a component.

$ bit move <oldDirName> <newDirName>
$ bit move <oldFileName> <newFileName>