git-*: add short/long options (#21737)

This commit is contained in:
Nelson Figueroa
2026-03-27 02:02:13 -07:00
committed by GitHub
parent 0e91c8fdbe
commit d8c534fd36
20 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
- Muestra la rama (branch) e información de seguimiento:
`git status --branch`
`git status {{[-b|--branch]}}`
- Muestra la salida en formato breve junto a la información de la rama (branch):
+3 -3
View File
@@ -13,15 +13,15 @@
- Démarrer l'outil de différences en précisant son nom :
`git mergetool --tool {{tool_name}}`
`git mergetool {{[-t|--tool]}} {{tool_name}}`
- Démarrer l'outil de différences sans dialogues :
`git mergetool --no-prompt`
`git mergetool {{[-y|--no-prompt]}}`
- Utiliser explicitement l'outil de différences graphique (voir la variable de config `merge.guitool`) :
`git mergetool --gui`
`git mergetool {{[-g|--gui]}}`
- Utiliser explicitement l'outil de différences classique (voir la variable de config `merge.tool`) :
+1 -1
View File
@@ -9,7 +9,7 @@
- Affiche seulement les références des têtes de branches :
`git show-ref --heads`
`git show-ref --branches`
- Affiche seulement les références de tags :
+2 -2
View File
@@ -10,8 +10,8 @@
- Buat cabang baru pada repositori lokal dan sumber jarak jauh (remote) origin:
`git create-branch --remote {{nama_cabang}}`
`git create-branch {{[-r|--remote]}} {{nama_cabang}}`
- Buat cabang baru pada repositori lokal dan sumber jarak jauh (remote) upstream (yang dibentuk melalui proses pencangkokan/fork):
`git create-branch --remote upstream {{nama_cabang}}`
`git create-branch {{[-r|--remote]}} upstream {{nama_cabang}}`
+1 -1
View File
@@ -9,7 +9,7 @@
- Mostra solo i riferimenti agli HEAD:
`git show-ref --heads`
`git show-ref --branches`
- Mostra solo i riferimenti ai tag:
+2 -2
View File
@@ -10,8 +10,8 @@
- 로컬 및 origin에 브랜치 생성:
`git create-branch --remote {{브랜치_이름}}`
`git create-branch {{[-r|--remote]}} {{브랜치_이름}}`
- 로컬 및 upstream(포크를 통해)에 브랜치 생성:
`git create-branch --remote upstream {{브랜치_이름}}`
`git create-branch {{[-r|--remote]}} upstream {{브랜치_이름}}`
+2 -2
View File
@@ -11,7 +11,7 @@
- 파일을 비공개로 무시하고, `.git/info/exclude` 파일을 업데이트:
`git ignore {{파일_패턴}} --private`
`git ignore {{파일_패턴}} {{[-p|--private]}}`
- 파일을 로컬에서 무시하고, 로컬 `.gitignore` 파일을 업데이트:
@@ -19,4 +19,4 @@
- 파일을 전역에서 무시하고, 전역 `.gitignore` 파일을 업데이트:
`git ignore {{파일_패턴}} --global`
`git ignore {{파일_패턴}} {{[-g|--global]}}`
+4 -4
View File
@@ -5,16 +5,16 @@
- 삭제된 파일 보기:
`git ls-files --deleted`
`git ls-files {{[-d|--deleted]}}`
- 수정되거나 삭제된 파일 보기:
`git ls-files --modified`
`git ls-files {{[-m|--modified]}}`
- `.gitignore`에 명시된 파일과 Git이 관리하지 않는 파일 보기:
`git ls-files --others`
`git ls-files {{[-o|--others]}}`
- Git이 관리하지 않는 파일 중 `.gitignore`에 명시되지 않은 파일 보기:
`git ls-files --others --exclude-standard`
`git ls-files {{[-o|--others]}} --exclude-standard`
+1 -1
View File
@@ -9,7 +9,7 @@
- 두 커밋의 모든 최상의 공통 조상을 출력:
`git merge-base --all {{commit_1}} {{commit_2}}`
`git merge-base {{[-a|--all]}} {{commit_1}} {{commit_2}}`
- 특정 커밋이 다른 커밋의 조상인지 확인:
+3 -3
View File
@@ -13,15 +13,15 @@
- 이름으로 식별된 병합 도구 실행:
`git mergetool --tool {{tool_name}}`
`git mergetool {{[-t|--tool]}} {{tool_name}}`
- 병합 도구를 실행하기 전에 각 호출마다 묻지 않음:
`git mergetool --no-prompt`
`git mergetool {{[-y|--no-prompt]}}`
- GUI 병합 도구를 명시적으로 사용 (설정 변수 `merge.guitool` 참조):
`git mergetool --gui`
`git mergetool {{[-g|--gui]}}`
- 일반 병합 도구를 명시적으로 사용 (설정 변수 `merge.tool` 참조):
+3 -3
View File
@@ -6,12 +6,12 @@
- Git 저장소 전체에서 작성자의 이메일과 이름 변경:
`git reauthor --old-email {{old@example.com}} --correct-email {{new@example.com}} --correct-name "{{name}}"`
`git reauthor {{[-o|--old-email]}} {{old@example.com}} {{[-e|--correct-email]}} {{new@example.com}} {{[-n|--correct-name]}} "{{name}}"`
- Git 설정에 정의된 이메일과 이름으로 변경:
`git reauthor --old-email {{old@example.com}} --use-config`
`git reauthor {{[-o|--old-email]}} {{old@example.com}} {{[-c|--use-config]}}`
- 원래 작성자와 관계없이 모든 커밋의 이메일과 이름 변경:
`git reauthor --all --correct-email {{name@example.com}} --correct-name {{name}}`
`git reauthor {{[-a|--all]}} {{[-e|--correct-email]}} {{name@example.com}} {{[-n|--correct-name]}} {{name}}`
+1 -1
View File
@@ -10,4 +10,4 @@
- 현재 작업 디렉토리를 현재 Git 저장소의 루트에 상대적으로 출력:
`git root --relative`
`git root {{[-r|--relative]}}`
+1 -1
View File
@@ -9,7 +9,7 @@
- 헤드 레퍼런스만 표시:
`git show-ref --heads`
`git show-ref --branches`
- 태그 레퍼런스만 표시:
+2 -2
View File
@@ -17,8 +17,8 @@
- 이름으로 참조 삭제:
`git symbolic-ref --delete refs/{{이름}}`
`git symbolic-ref {{[-d|--delete]}} refs/{{이름}}`
- 스크립팅을 위해 `--quiet`로 오류를 숨기고 `--short`를 사용하여 간소화하기 ("refs/heads/X"가 "X"로 출력됨):
`git symbolic-ref --quiet --short refs/{{이름}}`
`git symbolic-ref {{[-q|--quiet]}} --short refs/{{이름}}`
+1 -1
View File
@@ -10,7 +10,7 @@
- 커밋에 대한 GPG 서명을 확인하고 각 커밋의 세부 정보를 표시:
`git verify-commit {{커밋_해시1 선택_커밋_해시2 ...}} --verbose`
`git verify-commit {{커밋_해시1 선택_커밋_해시2 ...}} {{[-v|--verbose]}}`
- 커밋에 대한 GPG 서명을 확인하고 원시 세부 정보를 출력:
+2 -2
View File
@@ -9,8 +9,8 @@
- Git 압축 아카이브 파일을 검증하고 자세한 정보 표시:
`git verify-pack --verbose {{경로/대상/pack-file}}`
`git verify-pack {{[-v|--verbose]}} {{경로/대상/pack-file}}`
- Git 압축 아카이브 파일을 검증하고 통계만 표시:
`git verify-pack --stat-only {{경로/대상/pack-file}}`
`git verify-pack {{[-s|--stat-only]}} {{경로/대상/pack-file}}`
+1 -1
View File
@@ -10,7 +10,7 @@
- 태그의 GPG 서명을 검증하고 각 태그에 대한 세부 정보를 표시:
`git verify-tag {{태그1 선택적_태그2 ...}} --verbose`
`git verify-tag {{태그1 선택적_태그2 ...}} {{[-v|--verbose]}}`
- 태그의 GPG 서명을 검증하고 원시 세부 정보를 출력:
+3 -3
View File
@@ -13,15 +13,15 @@
- Belirtilen birleştirme aracını başlat:
`git mergetool --tool {{araç_ismi}}`
`git mergetool {{[-t|--tool]}} {{araç_ismi}}`
- Her birleştirme aracı çağrılışında harekete geçme:
`git mergetool --no-prompt`
`git mergetool {{[-y|--no-prompt]}}`
- Özellikle grafiksel (GUI) birleştirme aracını kullan (merge.guitool değişkenine göz at):
`git mergetool --gui`
`git mergetool {{[-g|--gui]}}`
- Özellikle normal birleştirme aracını kullan (merge.guitool değişkenine göz at):
+1 -1
View File
@@ -9,7 +9,7 @@
- Yalnızca kafa referanslarını göster:
`git show-ref --heads`
`git show-ref --branches`
- Yalnızca etiket referanslarını göster:
+2 -2
View File
@@ -10,8 +10,8 @@
- 创建本地分支并推送到 origin 远程:
`git create-branch --remote {{分支名}}`
`git create-branch {{[-r|--remote]}} {{分支名}}`
- 创建本地分支并推送到 upstream 远程(常用于 fork 的工作流):
`git create-branch --remote upstream {{分支名}}`
`git create-branch {{[-r|--remote]}} upstream {{分支名}}`