tldr/pages.tr/common/git-mv.md

17 lines
493 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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}}`