Skip to content

Commit 5756511

Browse files
authored
Merge pull request arslanbilal#85 from barandemirbas/patch-1
Update git-cheat-sheet-tr.md
2 parents b148ee0 + eabbe1f commit 5756511

File tree

1 file changed

+162
-3
lines changed

1 file changed

+162
-3
lines changed

other-sheets/git-cheat-sheet-tr.md

+162-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Git Cheat Sheet Turkish [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/
33

44

55
### Index
6+
* [Kurulum](#kurulum)
7+
* [Yapılandırma](#yapılandırma)
68
* [Oluşturma](#oluşturma)
79
* [Yerel Değişiklikler](#yerel-değişiklikler)
810
* [Arama](#arama)
@@ -15,6 +17,68 @@ Git Cheat Sheet Turkish [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/
1517

1618
<hr>
1719

20+
## Kurulum
21+
22+
##### Mevcut ayarları göstermek:
23+
```
24+
$ git config --list
25+
```
26+
##### Repository(depo) ayarlarını göstermek:
27+
```
28+
$ git config --local --list
29+
```
30+
31+
##### Global ayarları göstermek:
32+
```
33+
$ git config --global --list
34+
```
35+
36+
##### Sistem ayarlarını göstermek:
37+
```
38+
$ git config --system --list
39+
```
40+
41+
##### Sürüm geçmişinde gözükecek adı belirlemek:
42+
```
43+
$ git config --global user.name “[firstname lastname]”
44+
```
45+
46+
##### Sürüm geçmişinde ilişkilendirilecek e-postayı belirlemek:
47+
```
48+
$ git config --global user.email “[valid-email]”
49+
```
50+
51+
##### Otomatik komut satırı renklendirmesini ayarlamak:
52+
```
53+
$ git config --global color.ui auto
54+
```
55+
56+
##### Commitler için global yazı editörünü ayarlamak:
57+
```
58+
$ git config --global core.editor vi
59+
```
60+
61+
<hr>
62+
63+
## Yapılandırma
64+
65+
##### Repositorye(depoya) özgü yapılandırma dosyası [--local]:
66+
```
67+
<repo>/.git/config
68+
```
69+
70+
##### Kullanıcıya özel yapılandırma dosyası [--global]:
71+
```
72+
~/.gitconfig
73+
```
74+
75+
##### Sistem genelinde yapılandırma dosyası [--system]:
76+
```
77+
/etc/gitconfig
78+
```
79+
80+
<hr>
81+
1882
## Oluşturma
1983

2084
##### Var olan bir repositoryi(depoyu) klonlama:
@@ -27,6 +91,10 @@ $ git clone ssh://[email protected]/repo.git
2791
$ git init
2892
```
2993

94+
##### Belirli dizinde yerel repository(depo) oluşturma:
95+
```
96+
$ git init <directory>
97+
3098
<hr>
3199
32100
## Yerel Değişiklikler
@@ -84,6 +152,23 @@ git checkout branch2
84152
git stash pop
85153
```
86154
155+
##### Saklanan değişiklikleri mevcut branche geri yükleme:
156+
```shell
157+
$ git stash apply
158+
```
159+
160+
#### İstenilen saklanma yerini mevcut branche geri yükleme:
161+
- *{stash_number}* `git stash list` ile elde edilebilir
162+
163+
```shell
164+
$ git stash apply stash@{stash_number}
165+
```
166+
167+
##### Saklanan değişiklikleri kaldırma:
168+
```
169+
$ git stash drop
170+
```
171+
87172
<hr>
88173

89174
## Arama
@@ -132,13 +217,34 @@ $ git log --author="username"
132217
$ git log -p <file>
133218
```
134219

135-
##### &lt;Dosyayı&gt; kim , ne ve ne zaman değiştirdiğini gösterir.:
220+
##### &lt;Dosyayı&gt; kimin ne zaman değiştirdiğini gösterir:
136221
```
137222
$ git blame <file>
138223
```
139224

225+
##### Referans kayıtlarını gösterir:
226+
```
227+
$ git reflog show
228+
```
229+
230+
##### Referans kayıtlarını siler:
231+
```
232+
$ git reflog delete
233+
```
234+
140235
<hr>
141236

237+
## Taşı / Yeniden Adlandır
238+
239+
##### Dosyayı yeniden adlandırmak:
240+
241+
Index.txt'den Index.html'e
242+
243+
```
244+
$ git mv Index.txt Index.html
245+
```
246+
247+
<hr>
142248
## Branches & Tags
143249

144250
##### Tüm var olan branchleri listeler:
@@ -171,6 +277,26 @@ $ git branch -d <branch>
171277
$ git tag <tag-name>
172278
```
173279

280+
##### `HEAD`i etiket ile işaretler ve bir mesaj eklemek için yazı editörünü açar:
281+
```
282+
$ git tag -a <tag-name>
283+
```
284+
285+
##### `HEAD`i bir mesaj içermek şartı ile etiketler:
286+
```
287+
$ git tag <tag-name> -am 'message here'
288+
```
289+
290+
##### Tüm etiketleri listeler:
291+
```
292+
$ git tag
293+
```
294+
295+
##### Tüm etiketleri mesajları ile listeler (etiket mesajı yoksa bir etiket mesajı yaz):
296+
```
297+
$ git tag -n
298+
```
299+
174300
<hr>
175301

176302
## Güncelleştirme & Yayınlama
@@ -262,6 +388,27 @@ $ git add <resolved-file>
262388
$ git rm <resolved-file>
263389
```
264390

391+
##### Commitleri birleştirmek:
392+
```
393+
$ git rebase -i <commit-just-before-first>
394+
```
395+
396+
Bu metni,
397+
398+
```
399+
pick <commit_id>
400+
pick <commit_id2>
401+
pick <commit_id3>
402+
```
403+
404+
bu metin ile değiştirin,
405+
406+
```
407+
pick <commit_id>
408+
squash <commit_id2>
409+
squash <commit_id3>
410+
```
411+
265412
<hr>
266413

267414
## Geri Alma
@@ -301,6 +448,14 @@ $ git reset <commit>
301448
$ git reset --keep <commit>
302449
```
303450

451+
452+
##### Gitignore'a eklenmeden önce yanlışlıkla kaydedilmiş dosyaları kaldırın:
453+
```
454+
$ git rm -r --cached .
455+
$ git add .
456+
$ git commit -m "remove xyz file"
457+
```
458+
304459
<hr>
305460

306461
## Git-Flow
@@ -347,10 +502,14 @@ $ wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develo
347502
##### Başlangıç (Initialize):
348503
###### Bu noktada kafanızda dallarınızı (branches) isimlendirme konusuna ilişkin birçok soru işareti oluşacaktır. Bu bağlamda varsayılan (default) değerleri kullanmanız önerilir.
349504
###### git flow'u kullanmak istediğiniz reponuzdayken:
350-
```
505+
```shell
351506
git flow init
352507
```
353-
508+
ya da
509+
###### varsayılan:
510+
```shell
511+
git flow init -d
512+
```
354513
<hr>
355514

356515
### Özellikler (Features)

0 commit comments

Comments
 (0)