Files
tldr/pages.tr/common/git-mv.md
2022-10-31 06:52:35 -03:00

17 lines
493 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git mv
> Dosyaları taşı veya yeniden adlandır ve Git indeksini güncelle.
> Daha fazla bilgi için: <https://git-scm.com/docs/git-mv>.
- Depo içindeki dosyayı taşı ve bu hareketi sonraki commit'e ekle:
`git mv {{dosya/konumu}} {{yeni/dosya/konumu}}`
- Dosyayı yeniden adlandır ve yeniden adlandırma hareketini sonraki commit'e ekle:
`git mv {{dosya_ismi}} {{yeni_dosya_ismi}}`
- Eğer varsa belirtilen hedefteki dosyanın üstüne yaz:
`git mv --force {{dosya}} {{hedef}}`