Git ile Versiyon Kontrolü
Git ağırlıklı olmak üzere aşağıdaki konuları kapsar
- Temel Git kavram ve komutları
- Gitflow Akışı
- Github (remote) repo yönetimi
- Semver
2. Ajanda
Version Kontrolü nedir
Git nedir? Git kurulumu
Temel Komutlar
Kod Deposu Yönetimi (Github)
Takım Çalışmalarında Git
(Gitflow)
Semantik Versiyonlama:
Semver
Hedef: Takım halinde bir kod
deposu oluşturmak
3. Git Nedir
The name "git" was given by Linus Torvalds when he wrote the very first
version. He described the tool as "the stupid content tracker"and the name as
(depending on your way)
- random three-letter combination that is pronounceable, and not actually
used by any common UNIX command. The fact that it is a mispronunciation
of "get" may or may not be relevant.
- stupid. contemptible and despicable. simple. Take your pick from the
dictionary of slang.
- "global information tracker": you're in a good mood, and it actually works
for you. Angels sing, and a light suddenly fills the room.
- "g*dd*mn idiotic truckload of sh*t": when it breaks
5. Önerilen Kullanım Biçimi
https://try.github.io/levels/1
~ man git => Kaynağından oku
Sık commit yap
Sakin ol. Git’te kod kaybolmaz (şayet commit’lediysen ;)
History’s güncelleme, yeni commit at
Dallanma akışı seç
Yetki dağılımına uygun kod depolarına ayır
Anlaşılır ve kısa commit mesajları at
Repine güncel tut (Sık git rebase)
Fazla stash tutma, askıdaki nesneleri temizle (git fetch -p & git gc)
Gitolite, Gitslave, Sourcetree gibi yardımcı araçlar kullan
6. Git kod depolama
servisi
2007’de kuruldu, ~48
mn projeyi barındırıyor
Açık kaynak projelerde
ücretsiz
Takım &
Organizasyonel Yetki
Yönetimi
10. Semver (Semantik Versiyonlama)
Versiyon numaraları MAJOR.MINOR.PATCH
kuralına göre ilerler
1) Yapısal API değişiklikleri için MAJOR,
2) Mevcut API ile çalışabilen yeni fonksiyonaliteler
için MINOR
3) Geçmişle uyumlu hata ayılakamalar (bug-fix) için
PATCH şeklinde etiketleyiniz
11. Ne Öğrendik
Version Kontrolü Nedir
Git Nedir? Nasıl Kurulur
Temel Git Komuve
Kavramları
Kod Deposu Yönetimi
(Github)
Takım Çalışmaları İçin
Dal Yönetimi (Gitflow)
Semantik Versiyonlama