1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 16:35:28 +02:00

git-mv: add page

This commit is contained in:
Igor Shubovych 2015-12-17 23:22:16 +02:00
parent 42155ea6dd
commit 3839223635

15
pages/common/git-mv.md Normal file
View file

@ -0,0 +1,15 @@
# git mv
> Move or rename files and update the git index.
- Move file inside the repo and add the movement to the next commit
`git mv {{path/to/file}} {{new/path/to/file}}`
- Rename file and add renaming to the next commit
`git mv {{filename}} {{new_filename}}`
- Overwrite the file in the target path if it exists
`git mv --force {{file}} {{target}}`