-
Notifications
You must be signed in to change notification settings - Fork 34
Update aliases.asc #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[[_git_aliases]] | ||
=== Git Aliases | ||
=== Komut Kısayolu (Alias) Ayarlama | ||
|
||
(((aliases))) | ||
Before we finish this chapter on basic Git, there's just one little tip that can make your Git experience simpler, easier, and more familiar: aliases. | ||
We won't refer to them or assume you've used them later in the book, but you should probably know how to use them. | ||
Temel Git ile ilgili bu bölümü bitirmeden önce Git deneyiminizi daha basit, daha kolay ve daha tanıdık hale getirebilecek küçük bir ipucu vereceğiz: komut kısayolları. | ||
Bu kitapta kısayol (alias) konusuna girmeyeceğiz veya ilerleyen bölümlerde bunları kullandığınızı varsaymayacağız, ancak bunları nasıl kullanacağınızı bilmenizde yine de fayda var. | ||
|
||
Git doesn't automatically infer your command if you type it in partially. | ||
If you don't want to type the entire text of each of the Git commands, you can easily set up an alias for each command using `git config`.(((git commands, config))) | ||
Here are a couple of examples you may want to set up: | ||
Eğer komutunuzun tamamını yazmazsanız, Git bir kısaltma yaptığınızı otomatik olarak anlayamaz. | ||
Git komutlarının tamamını uzun uzun yazmak istemiyorsanız, `git config` komutunu kullanarak, her komut için kolayca bir kısayol ayarlayabilirsiniz.(((git commands, config))) | ||
Aşağıda kısayol olarak isteyebileceğiniz birkaç örnek verilmiştir: | ||
|
||
[source,console] | ||
---- | ||
|
@@ -17,34 +17,34 @@ $ git config --global alias.ci commit | |
$ git config --global alias.st status | ||
---- | ||
|
||
This means that, for example, instead of typing `git commit`, you just need to type `git ci`. | ||
As you go on using Git, you'll probably use other commands frequently as well; don't hesitate to create new aliases. | ||
İlk örnekte `git commit` yerine "git ci" komutunu ayarlıyorsunuz. Artık `git ci` yazarsanız Git bunu `git commit` olarak düşünecektir. | ||
Git'i kullanmaya devam ettikçe muhtemelen diğer komutları da sıklıkla kullanacaksınız; yeni kısayollar oluşturmaktan çekinmeyin. | ||
|
||
This technique can also be very useful in creating commands that you think should exist. | ||
For example, to correct the usability problem you encountered with unstaging a file, you can add your own unstage alias to Git: | ||
Bu tekniği aynı zamanda Git'te mevcut olmayan, ama olması gerektiğini düşündüğünüz komutların oluşturulmasında da kullanabilirsiniz. | ||
Örneğin, bir dosyayı "stage"den kaldırırken karşılaştığınız "kullanılabilirlik" sorununu düzeltmek için Git'e kendi "stage"den kaldırma komutunuzu ekleyebilirsiniz: | ||
|
||
[source,console] | ||
---- | ||
$ git config --global alias.unstage 'reset HEAD --' | ||
---- | ||
|
||
This makes the following two commands equivalent: | ||
Bu yeni tanımlanan komut, aşağıdaki iki komutun işini tek başına yapacaktır. | ||
|
||
[source,console] | ||
---- | ||
$ git unstage fileA | ||
$ git reset HEAD -- fileA | ||
---- | ||
|
||
This seems a bit clearer. | ||
It's also common to add a `last` command, like this: | ||
Böylesi daha temiz görünüyor. | ||
Bir `last` komutu eklemek de çok yaygındır. Şunun gibi: | ||
|
||
[source,console] | ||
---- | ||
$ git config --global alias.last 'log -1 HEAD' | ||
---- | ||
|
||
This way, you can see the last commit easily: | ||
Böylelikle son işlemi kolayca görebilirsiniz: | ||
|
||
[source,console] | ||
---- | ||
|
@@ -58,11 +58,11 @@ Date: Tue Aug 26 19:48:51 2008 +0800 | |
Signed-off-by: Scott Chacon <[email protected]> | ||
---- | ||
|
||
As you can tell, Git simply replaces the new command with whatever you alias it for. | ||
However, maybe you want to run an external command, rather than a Git subcommand. | ||
In that case, you start the command with a `!` character. | ||
This is useful if you write your own tools that work with a Git repository. | ||
We can demonstrate by aliasing `git visual` to run `gitk`: | ||
Gördüğünüz gibi Git, yeni komutu her neyin kısayolu olarak ayarlarsanız onunla değiştirir. | ||
Ancak Git alt komutları yerine harici bir komut da çalıştırmak isteyebilirsiniz. | ||
Bu durumda komuta `!` karakteriyle başlamalısınız. | ||
Eğer Git'te çalışan kendi komutlarınızı yazmak istiyorsanız bu epey kullanışlıdır. | ||
Hadi `git visual` komutunu çalıştıracak `gitk` kısayolunu atamayı gösterelim: | ||
|
||
[source,console] | ||
---- | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Bu kitapta kısayol (alias) konusuna girmeyeceğiz" orijinalindeki anlamı tam karşılamamış gibi duruyor. Zaten alias chapter'ında "bu kitapta alias konusuna girmeyeceğiz" deyip devamında alias'ı anlatması tuhaf duruyor :)
Sanırım "İlerleyen bölümlerde kısayol (alias) konusuna tekrar değinmeyeceğiz veya bunları kullandığınızı varsaymayacağız, ancak bunları nasıl kullanacağınızı bilmenizde yine de fayda var." gibi bir değişiklik anlamı daha iyi iletir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Evet böylesi daha doğru bir çeviri olmuş. Siz gerekli değişikliği yapmışsınız, benim tekrardan bir şey yapmama gerek var mı? Sistemi tam bilmediğim için soruyorum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bir de 3. üniteyi çevirmeye başladım. Yalnız sormam gereken bir şey var: Ben her alt-bölüm için ayrı bir dal açıyordum. Böylece siz sadece o daldaki çeviriyi kabul etmek isterseniz, size kolaylık olur diye. Ama çeviriye farklı kaynaklardan çok çok katkı olmuyor gibi. Ayrıca çok fazla dal açtığım için aradığım dalı zorlaşmaya başladı. Her bir ünite için mi ayrı dal açayım yoksa sizlerin uyguladığı belli bir sistem veya tavsiyeniz var mı?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ben değişikliği sözlü olarak yapmış oldum 😄 değişikliği yaptıktan sonra
ile aynı commit'e ekleyip push'larsınız commit history daha temiz oluyor, her update için ayrı commit yerine tek commit gözüküyor.
Dallar ve büyüklükleri hakkında gördüğüm kadarıyla bir standart yok. Ancak büyük olmasını ben kendi adıma tercih etmiyorum çünkü birbirinden habersiz aynı kısımla uğraşıldığında kayıp büyümüş oluyor 😅 mesela burası için sizden sonra bir PR daha açılmış #33 bir de PR ne kadar büyürse review süresi uzadığı için reviewer sayısı o kadar azalıyor. Dalların takibi için de verebileceğim tek tavsiye update/patch gibi isimler yerine chapter2-aliases gibi branch isimleri vermek en azından bulmayı kolaylaştırıyor.
Tabii bunların kalıcı çözümleri için terimler sözlüğü gibi bir issue daha açıp ortak bir sistem konuşulup kararlaşılabilir. Örneğin bir kısımda çeviriye başlayan kişinin yeni bir issue açarak bunu duyurması, branch isimleri, commit mesajları, PR büyüklükleri vb