Skip to content

Commit

Permalink
#2 issue git-mv_ru.md
Browse files Browse the repository at this point in the history
  • Loading branch information
3t3rn1ty authored Oct 10, 2019
1 parent fc4875e commit a08cae2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pages/common/git-mv_ru.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# git mv

> Перемещение или переименование файлов и обновление индекса git.
- Переместить файл в РЕПО и добавить перемещение в следующий коммит:

`git mv {{path/to/file}} {{new/path/to/file}}`

- Переименовать файл и добавить переименование в следующий коммит:

`git mv {{filename}} {{new_filename}}`

- Перезаписать файл в целевом пути, если он существует:

`git mv --force {{file}} {{target}}`

0 comments on commit a08cae2

Please sign in to comment.