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

30 lines
732 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 switch
> Git dalları arasında geçiş yap. Gir sürümü 2.23+ olmalıdır.
> Ayrıca benzer işlev gören `git checkout` komutuna bakılması önerilir.
> Daha fazla bilgi için: <https://git-scm.com/docs/git-switch>.
- Varolan bir dala geç:
`git switch {{dal_ismi}}`
- Yeni bir dal yarat ve ona geç:
`git switch --create {{dal_ismi}}`
- Varolan commit üzerine yeni bir dal yarat ve ona geç:
`git switch --create {{dal_ismi}} {{commit}}`
- Önceki dala geç:
`git switch -`
- Bir dala geç ve tüm alt modülleri uyum için güncelle:
`git switch --recurse-submodules {{dal_ismi}}`
- Bir dala geç ve mevcut dal ile commit'lenmeyen değişiklikleri bu dal ile birleştir:
`git switch --merge {{dal_ismi}}`