Files
tldr/pages.tr/common/git-branch.md
2024-10-13 10:26:47 +02:00

33 lines
710 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 branch
> Dallar ile çalışmak için kullanılan ana Git komutu.
> Daha fazla bilgi için: <https://git-scm.com/docs/git-branch>.
- Tüm dalları (yerel ve uzak bağlantıda olan) göster:
`git branch --all`
- Mevcut dalın ismini göster:
`git branch --show-current`
- Mevcut commit'e dayanarak yeni bir dal oluştur:
`git branch {{dal_ismi}}`
- Belirtilen commit'e dayanarak yeni bir dal oluştur:
`git branch {{dal_ismi}} {{commit_değeri}}`
- Bir dalı yeniden adlandır:
`git branch {{-m|--move}} {{eski_dal_ismi}} {{yeni_dal_ismi}}`
- Yerel bir dalı sil:
`git branch {{-d|--delete}} {{dal_ismi}}`
- Uzaktaki bir dalı sil:
`git push {{uzak_bağlantı}} --delete {{uzak_dal_ismi}}`