diff --git a/pages.bn/common/git-cherry-pick.md b/pages.bn/common/git-cherry-pick.md index 43c541f20e..04c5210e11 100644 --- a/pages.bn/common/git-cherry-pick.md +++ b/pages.bn/common/git-cherry-pick.md @@ -14,7 +14,7 @@ - বর্তমান ব্র্যাঞ্চে একাধিক (অ-ক্রমিক) কমিট করুন: -`git cherry-pick {{কমিট_১}} {{কমিট_২}}` +`git cherry-pick {{কমিট_১ কমিট_২ ...}}` - কমিট তৈরি না করেই ওয়ার্কিং ডিরেক্টরিতে কমিটের পরিবর্তন যোগ করুন: diff --git a/pages.de/common/git-archive.md b/pages.de/common/git-archive.md index b822da1232..e9254c6597 100644 --- a/pages.de/common/git-archive.md +++ b/pages.de/common/git-archive.md @@ -5,24 +5,24 @@ - Erstelle ein tar-Archiv aus dem Inhalt des aktuellen HEAD und gib dieses aus: -`git archive --verbose HEAD` +`git archive {{-v|--verbose}} HEAD` - Erstelle ein zip-Archiv aus dem Inhalt des aktuellen HEAD und gib dieses aus: -`git archive --verbose --format zip HEAD` +`git archive {{-v|--verbose}} --format zip HEAD` - Erstelle ein zip-Archiv aus dem Inhalt des aktuellen HEAD und speichere dieses in eine Datei: -`git archive --verbose --output {{pfad/zu/datei.zip}} HEAD` +`git archive {{-v|--verbose}} {{-o|--output}} {{pfad/zu/datei.zip}} HEAD` - Erstelle ein tar-Archiv aus dem Inhalt des letzten Commits eines bestimmten Branches: -`git archive --output {{pfad/zu/datei.tar}} {{branch_name}}` +`git archive {{-o|--output}} {{pfad/zu/datei.tar}} {{branch_name}}` - Erstelle ein tar-Archiv aus dem Inhalt eines bestimmten Verzeichnisses: -`git archive --output {{pfad/zu/datei.tar}} HEAD:{{pfad/zu/verzeichnis}}` +`git archive {{-o|--output}} {{pfad/zu/datei.tar}} HEAD:{{pfad/zu/verzeichnis}}` - Stelle jeder Datei einen Pfad voran, um sie in einem bestimmten Verzeichnis zu archivieren: -`git archive --output {{pfad/zu/datei.tar}} --prefix {{pfad/zu/verzeichnis}}/ HEAD` +`git archive {{-o|--output}} {{pfad/zu/datei.tar}} --prefix {{pfad/zu/verzeichnis}}/ HEAD` diff --git a/pages.de/common/git-blame.md b/pages.de/common/git-blame.md index 04e0cfc7f8..48a9f1f62c 100644 --- a/pages.de/common/git-blame.md +++ b/pages.de/common/git-blame.md @@ -9,4 +9,4 @@ - Gib die Commit-Hashes und dem Autor (inklusive E-Mail) jeder Zeile einer Datei aus: -`git blame -e {{pfad/zu/datei}}` +`git blame {{-e|--show-email}} {{pfad/zu/datei}}` diff --git a/pages.de/common/git-branch.md b/pages.de/common/git-branch.md index bc24865fc5..0a97ee98fd 100644 --- a/pages.de/common/git-branch.md +++ b/pages.de/common/git-branch.md @@ -25,11 +25,11 @@ - Benenne einen Branches um (der Branch muss nicht ausgecheckt sein): -`git branch -m {{alter_branch_name}} {{neuer_branch_name}}` +`git branch {{-m|--move}} {{alter_branch_name}} {{neuer_branch_name}}` - Lösche einen lokalen Branch (der Branch muss nicht ausgecheckt sein): -`git branch -d {{branch_name}}` +`git branch {{-d|--delete}} {{branch_name}}` - Lösche einen remote-Branch: diff --git a/pages.de/common/git-commit.md b/pages.de/common/git-commit.md index c3186158b4..895210c2fc 100644 --- a/pages.de/common/git-commit.md +++ b/pages.de/common/git-commit.md @@ -25,7 +25,7 @@ - Comitte nur spezifische Dateien (die Dateien müssen schon auf dem Stage liegen): -`git commit {{pfad/zu/datei1}} {{pfad/zu/datei2}}` +`git commit {{pfad/zu/datei1 pfad/zu/datei2 ...}}` - Erzeuge einen Commit, auch wenn keine Dateien auf dem Stage liegen: diff --git a/pages.de/common/git-log.md b/pages.de/common/git-log.md index b0dc8a18ce..e49d1d0d6c 100644 --- a/pages.de/common/git-log.md +++ b/pages.de/common/git-log.md @@ -9,7 +9,7 @@ - Zeige die Historie einer bestimmten Datei oder eines Verzeichnisses, inklusive Unterschiede, an: -`git log -p {{pfad/zu/datei_oder_verzeichnis}}` +`git log {{-p|-u|--patch}} {{pfad/zu/datei_oder_verzeichnis}}` - Zeige einen Überblick der Commits an und welche Dateien jeweils verändert wurden: @@ -25,12 +25,12 @@ - Zeige nur Commits, deren Commit-Nachricht einen bestimmten Text enthalten (Ohne Beachtung von Groß- und Kleinschreibung): -`git log -i --grep {{text}}` +`git log {{-i|--regexp-ignore-case}} --grep {{text}}` - Zeige die letzten N Commits eines bestimmten Autors: -`git log -n {{anzahl}} --author={{autor}}` +`git log {{-n|--max-count}} {{anzahl}} --author "{{autor}}"` - Zeige alle Commits zwischen zwei Zeitpunkten an (yyyy-mm-dd): -`git log --before="{{2017-01-29}}" --after="{{2017-01-17}}"` +`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"` diff --git a/pages.de/common/git-rebase.md b/pages.de/common/git-rebase.md index 9327f9ce6f..65399d4854 100644 --- a/pages.de/common/git-rebase.md +++ b/pages.de/common/git-rebase.md @@ -10,7 +10,7 @@ - Starte einen interaktiven Rebase, bei dem Commits umsortiert, weggelassen, kombiniert oder verändert werden können: -`git rebase -i {{ziel_basisbranch_oder_commithash}}` +`git rebase {{-i|--interactive}} {{ziel_basisbranch_oder_commithash}}` - Setze einen Rebase fort, der durch einen Mergefehler unterbrochen wurde, nachdem die Konflikte aufgelöst wurden: @@ -30,8 +30,8 @@ - Bearbeite die 5 letzten Commits der aktuellen Basis um diese neu zu ordnen, auszulassen, kombinieren oder zu bearbeiten: -`git rebase -i {{HEAD~5}}` +`git rebase {{-i|--interactive}} {{HEAD~5}}` - Löse Konflikte automatisch auf, indem der aktuelle Branch bevorzugt wird (das Schlüsselwort `theirs` hat in diesem Fall eine umgekehrte Bedeutung): -`git rebase -X theirs {{branch_name}}` +`git rebase {{-X|--strategy-option}} theirs {{branch_name}}` diff --git a/pages.de/common/git-remote.md b/pages.de/common/git-remote.md index 23cb1aea06..66574dfca3 100644 --- a/pages.de/common/git-remote.md +++ b/pages.de/common/git-remote.md @@ -5,7 +5,7 @@ - Liste alle existierenden Remotes, ihre Namen und ihre URLs auf: -`git remote -v` +`git remote {{-v|--verbose}}` - Zeige Informationen über ein Remote an: diff --git a/pages.de/common/git.md b/pages.de/common/git.md index af8438bb39..551a84b3f2 100644 --- a/pages.de/common/git.md +++ b/pages.de/common/git.md @@ -4,18 +4,6 @@ > Manche Unterbefehle wie `commit` sind separat dokumentiert. > Weitere Informationen: . -- Gib die installierte Git Version aus: - -`git --version` - -- Zeige die generelle Hilfeseite an: - -`git --help` - -- Zeige die Hilfeseite eines Unterbefehls an: - -`git help {{unterbefehl}}` - - Führe einen Git-Unterbefehl aus: `git {{unterbefehl}}` @@ -27,3 +15,15 @@ - Führe einen Git-Unterbefehl mit der angegebenen Konfiguration aus: `git -c '{{config.key}}={{wert}}' {{unterbefehl}}` + +- Zeige die generelle Hilfeseite an: + +`git --help` + +- Zeige die Hilfeseite eines Unterbefehls an: + +`git help {{unterbefehl}}` + +- Gib die installierte Git Version aus: + +`git --version` diff --git a/pages.es/common/git-bundle.md b/pages.es/common/git-bundle.md index 35faf84602..2c6e1f467f 100644 --- a/pages.es/common/git-bundle.md +++ b/pages.es/common/git-bundle.md @@ -13,11 +13,11 @@ - Crea un archivo bundle de los últimos 5 commits de la rama actual: -`git bundle create {{ruta/al/archivo.bundle}} -{{5}} {{HEAD}}` +`git bundle create {{ruta/al/archivo.bundle}} -5 {{HEAD}}` - Crea un archivo bundle de los últimos 7 días: -`git bundle create {{ruta/al/archivo.bundle}} --since {{7.days}} {{HEAD}}` +`git bundle create {{ruta/al/archivo.bundle}} --since 7.days {{HEAD}}` - Verifica que un archivo bundle es válido y puede aplicarse al repositorio actual: diff --git a/pages.es/common/git-clean.md b/pages.es/common/git-clean.md index 161c4a93b6..28810400ee 100644 --- a/pages.es/common/git-clean.md +++ b/pages.es/common/git-clean.md @@ -9,7 +9,7 @@ - Elimina interactivamente archivos que no son rastreados por Git: -`git clean {{--interactive|-i}}` +`git clean {{-i|--interactive}}` - Muestra que archivos serían borrados sin llegar a borrarlos: @@ -17,11 +17,11 @@ - Elimina forzosamente los archivos que no son rastreados por Git: -`git clean {{--force|-f}}` +`git clean {{-f|--force}}` - Elimina forzosamente los directorios que no son rastreados por Git: -`git clean {{--force|-f}} -d` +`git clean {{-f|--force}} -d` - Elimina archivos sin rastrear, incluyendo los archivos ignorados en `.gitignore` y los excluidos en `.git/info/exclude`: diff --git a/pages.es/common/git-log.md b/pages.es/common/git-log.md index 3643c9d004..51b3d43b9b 100644 --- a/pages.es/common/git-log.md +++ b/pages.es/common/git-log.md @@ -9,7 +9,7 @@ - Muestra el historial de un archivo o directorio específico, incluyendo las diferencias: -`git log {{--patch|-p|-u}} {{ruta/al/archivo_o_directorio}}` +`git log {{-p|-u|--patch}} {{ruta/al/archivo_o_directorio}}` - Muestra un resumen de los archivos, o archivo, cambiados en cada confirmación: @@ -29,7 +29,7 @@ - Muestra las últimas N confirmaciones de determinado autor: -`git log {{--max-count|-n}} {{número}} --author "{{autor}}"` +`git log {{-n|--max-count}} {{número}} --author "{{autor}}"` - Muestra las confirmaciones entre dos fechas (yyyy-mm-dd): diff --git a/pages.es/common/git-shortlog.md b/pages.es/common/git-shortlog.md index f8c206173a..e080e20bcd 100644 --- a/pages.es/common/git-shortlog.md +++ b/pages.es/common/git-shortlog.md @@ -17,7 +17,7 @@ - Muestra un resumen de las últimas cinco confirmaciones (i. e., un rango de revisiones específico): -`git shortlog HEAD~{{5}}..HEAD` +`git shortlog HEAD~5..HEAD` - Muestra todos los usuarios, correos electrónicos y número de confirmaciones en la rama actual: diff --git a/pages.fr/common/git-archive.md b/pages.fr/common/git-archive.md index a3ae4855ec..d393b935d4 100644 --- a/pages.fr/common/git-archive.md +++ b/pages.fr/common/git-archive.md @@ -5,24 +5,24 @@ - Crée une archive `.tar` avec le contenu de la HEAD et l'affiche sur la sortie standard : -`git archive --verbose HEAD` +`git archive {{-v|--verbose}} HEAD` - Crée une archive Zip avec le contenu de la HEAD et l'affiche sur la sortie standard : -`git archive --verbose --format zip HEAD` +`git archive {{-v|--verbose}} --format zip HEAD` - Pareil que ci-dessus mais écrit dans l'archive spécifiée : -`git archive --verbose --output {{chemin/vers/fichier.zip}} HEAD` +`git archive {{-v|--verbose}} {{-o|--output}} {{chemin/vers/fichier.zip}} HEAD` - Crée une archive depuis le dernier commit de la branche spécifiée : -`git archive --output {{chemin/vers/fichier.tar}} {{nom_de_branche}}` +`git archive {{-o|--output}} {{chemin/vers/fichier.tar}} {{nom_de_branche}}` - Crée une archive avec le contenu d'un répertoire donné : -`git archive --output {{chemin/vers/fichier.tar}} HEAD:{{chemin/vers/repertoire}}` +`git archive {{-o|--output}} {{chemin/vers/fichier.tar}} HEAD:{{chemin/vers/repertoire}}` - Ajoutez un chemin d'accès à chaque fichier pour l'archiver dans un répertoire spécifique : -`git archive --output {{chemin/vers/fichier.tar}} --prefix {{chemin/vers/cible}}/ HEAD` +`git archive {{-o|--output}} {{chemin/vers/fichier.tar}} --prefix {{chemin/vers/cible}}/ HEAD` diff --git a/pages.fr/common/git-blame.md b/pages.fr/common/git-blame.md index 731b581e63..5aa926cdd4 100644 --- a/pages.fr/common/git-blame.md +++ b/pages.fr/common/git-blame.md @@ -9,4 +9,4 @@ - Affiche le hash de commit le nom et l email de l auteur en face de chaque ligne : -`git blame -e {{file}}` +`git blame {{-e|--show-email}} {{file}}` diff --git a/pages.fr/common/git-branch.md b/pages.fr/common/git-branch.md index 361530f51d..3b6f7d4fd3 100644 --- a/pages.fr/common/git-branch.md +++ b/pages.fr/common/git-branch.md @@ -21,11 +21,11 @@ - Renommer une branche (ne pas se trouver sur la branche pour le faire) : -`git branch -m {{ancien_nom_de_branche}} {{nouveau_nom_de_branche}}` +`git branch {{-m|--move}} {{ancien_nom_de_branche}} {{nouveau_nom_de_branche}}` - Supprimer un branche locale (ne pas se trouver sur la branche pour le faire) : -`git branch -d {{nom_de_branche}}` +`git branch {{-d|--delete}} {{nom_de_branche}}` - Supprimer une branche distante : diff --git a/pages.fr/common/git-bundle.md b/pages.fr/common/git-bundle.md index ebd76a96ad..db3c57e43d 100644 --- a/pages.fr/common/git-bundle.md +++ b/pages.fr/common/git-bundle.md @@ -13,11 +13,11 @@ - Crée un empaquetage des 5 derniers commits de la branche courante : -`git bundle create {{chemin/vers/fichier.bundle}} -{{5}} {{HEAD}}` +`git bundle create {{chemin/vers/fichier.bundle}} -5 {{HEAD}}` - Crée un empaquetage des 7 derniers jours : -`git bundle create {{chemin/vers/fichier.bundle}} --since={{7.days}} {{HEAD}}` +`git bundle create {{chemin/vers/fichier.bundle}} --since 7.days {{HEAD}}` - Vérifie qu'un empaquetage est valide et peut être appliqué à la branche courante : diff --git a/pages.fr/common/git-cherry-pick.md b/pages.fr/common/git-cherry-pick.md index 40088fdb32..7174a72b7d 100644 --- a/pages.fr/common/git-cherry-pick.md +++ b/pages.fr/common/git-cherry-pick.md @@ -14,7 +14,7 @@ - Appliquer plusieurs commits non séquentiels à la branche courante : -`git cherry-pick {{commit_1}} {{commit_2}}` +`git cherry-pick {{commit_1 commit_2 ...}}` - Appliquer les changements d'un commit à la branche courante sans créer de commit : diff --git a/pages.fr/common/git-cherry.md b/pages.fr/common/git-cherry.md index bbaf150d42..88ea20dc90 100644 --- a/pages.fr/common/git-cherry.md +++ b/pages.fr/common/git-cherry.md @@ -5,7 +5,7 @@ - Afficher les commits (et leurs messages) avec des commits équivalents en amont : -`git cherry -v` +`git cherry {{-v|--verbose}}` - Spécifiez une branche amont et une branche de rubrique différentes : diff --git a/pages.fr/common/git-clean.md b/pages.fr/common/git-clean.md index 21ad8b9b3a..2b86c0f187 100644 --- a/pages.fr/common/git-clean.md +++ b/pages.fr/common/git-clean.md @@ -9,7 +9,7 @@ - Supprimer les fichiers non-suivis de manière interactive : -`git clean -i` +`git clean {{-i|--interactive}}` - Affiche les fichiers non-suivis qui peuvent être supprimés : @@ -17,11 +17,11 @@ - Nettoyage forcé des fichiers non-suivis : -`git clean -f` +`git clean {{-f|--force}}` - Nettoyage forcé des répertoires non-suivis : -`git clean -fd` +`git clean {{-f|--force}} -d` - Supprime tous les fichiers suivis, incluant ceux répertoriés par `.gitignore` et `.git/info/exclude` : diff --git a/pages.fr/common/git-commit.md b/pages.fr/common/git-commit.md index 7d4be6aaba..a1c77b713f 100644 --- a/pages.fr/common/git-commit.md +++ b/pages.fr/common/git-commit.md @@ -17,4 +17,4 @@ - Commit seulement les fichiers spécifiés (qui sont déjà en stage) : -`git commit {{chemin/vers/mon/fichier1}} {{chemin/vers/mon/fichier2}}` +`git commit {{chemin/vers/mon/fichier1 chemin/vers/mon/fichier2 ...}}` diff --git a/pages.fr/common/git-lfs.md b/pages.fr/common/git-lfs.md index 4bd7451134..1726d3fdba 100644 --- a/pages.fr/common/git-lfs.md +++ b/pages.fr/common/git-lfs.md @@ -13,7 +13,7 @@ - Changer l'URL du point de terminaison Git LFS (utile si le serveur LFS est séparé du serveur Git) : -`git config -f .lfsconfig lfs.url {{lfs_endpoint_url}}` +`git config {{-f|--file}} .lfsconfig lfs.url {{lfs_endpoint_url}}` - Lister les pattern de fichiers suivis : diff --git a/pages.fr/common/git-log.md b/pages.fr/common/git-log.md index 6f2b0ba796..cbece8899d 100644 --- a/pages.fr/common/git-log.md +++ b/pages.fr/common/git-log.md @@ -9,7 +9,7 @@ - Afficher l'historique de fichiers ou répertoires en particulier : -`git log -p {{chemin/vers/fichier_ou_repertoire}}` +`git log {{-p|-u|--patch}} {{chemin/vers/fichier_ou_repertoire}}` - Afficher la liste des fichiers modifiés pour chaque commit : @@ -25,12 +25,12 @@ - Afficher uniquement les commits dont le message contient la chaine (non sensible à la casse) : -`git log -i --grep {{chaine_recherché}}` +`git log {{-i|--regexp-ignore-case}} --grep {{chaine_recherché}}` - Afficher les N derniers commits d'un utilisateur : -`git log -n {{number}} --author={{author}}` +`git log {{-n|--max-count}} {{number}} --author "{{author}}"` - Afficher les commits entre deux dates (yyyy-mm-dd): -`git log --before="{{2017-01-29}}" --after="{{2017-01-17}}"` +`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"` diff --git a/pages.fr/common/git-rebase.md b/pages.fr/common/git-rebase.md index 57102f1f3d..fdc489dfe9 100644 --- a/pages.fr/common/git-rebase.md +++ b/pages.fr/common/git-rebase.md @@ -10,7 +10,7 @@ - Rejouer les comits interactivement, ce qui permet aux commits d'être re-arrangés, exclus, combinés ou modifiés : -`git rebase -i {{branche_de_base_ou_commit}}` +`git rebase {{-i|--interactive}} {{branche_de_base_ou_commit}}` - Continuer le re-jeu des commits après la résolution d'un conflit : @@ -30,8 +30,8 @@ - Rejoue les 5 derniers commits, ce qui permet aux commits d'être re-arrangés, exclus, combinés ou modifiés : -`git rebase -i {{HEAD~5}}` +`git rebase {{-i|--interactive}} {{HEAD~5}}` - Résoudre automatiquement les conflits en précisant la version à conserver (`theirs` signifie la version des fichiers à privilégier) : -`git rebase -X theirs {{master}}` +`git rebase {{-X|--strategy-option}} theirs {{master}}` diff --git a/pages.fr/common/git-reflog.md b/pages.fr/common/git-reflog.md index 5cab0a9f4d..3920605d49 100644 --- a/pages.fr/common/git-reflog.md +++ b/pages.fr/common/git-reflog.md @@ -13,4 +13,4 @@ - Affiche les 5 dernières entrées dans le reflog : -`git reflog -n {{5}}` +`git reflog {{-n|--max-count}} 5` diff --git a/pages.fr/common/git-remote.md b/pages.fr/common/git-remote.md index ecde4bc71e..10b0c2dc52 100644 --- a/pages.fr/common/git-remote.md +++ b/pages.fr/common/git-remote.md @@ -5,7 +5,7 @@ - Affiche les dépôts existants, leur nom et URL : -`git remote -v` +`git remote {{-v|--verbose}}` - Affiche les informations à propos d'un dépôt : diff --git a/pages.fr/common/git-shortlog.md b/pages.fr/common/git-shortlog.md index 741f734979..3291f9def9 100644 --- a/pages.fr/common/git-shortlog.md +++ b/pages.fr/common/git-shortlog.md @@ -9,20 +9,20 @@ - Afficher un résumé de tous les commits effectués, regroupés par le nombre de commits effectués : -`git shortlog -n` +`git shortlog {{-n|--numbered}}` - Afficher un résumé de tous les commits effectués, regroupés par le nom et l'email de l'utilisateur : -`git shortlog -c` +`git shortlog {{-c|--committer}}` - Afficher un résumé des 5 derniers commits effectués : -`git shortlog HEAD~{{5}}..HEAD` +`git shortlog HEAD~5..HEAD` - Afficher tout les utilisateurs, emails et le nombre de commits dans la branche : -`git shortlog -sne` +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}}` - Afficher tout les utilisateurs, emails et le nombre de commits dans toutes les branches : -`git shortlog -sne --all` +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}} --all` diff --git a/pages.fr/common/git-svn.md b/pages.fr/common/git-svn.md index 983ab77991..bab517b95e 100644 --- a/pages.fr/common/git-svn.md +++ b/pages.fr/common/git-svn.md @@ -9,7 +9,7 @@ - Cloner un dépôt SVN à partir d'une révision donnée : -`git svn clone -r{{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_dir}}` +`git svn clone {{-r|--revision}} {{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_dir}}` - Mettre à jour le clone local à partir du dépôt SVN distant : diff --git a/pages.fr/common/git.md b/pages.fr/common/git.md index e5ebfddb76..3c616b7f1b 100644 --- a/pages.fr/common/git.md +++ b/pages.fr/common/git.md @@ -4,18 +4,6 @@ > Certaines commandes comme `git commit` ont leur propre documentation. > Plus d'informations : . -- Obtenir la version de Git : - -`git --version` - -- Afficher l'aide générale : - -`git --help` - -- Afficher l'aide sur une sous-commande Git : - -`git help {{sous_commande}}` - - Exécuter une sous-commande Git : `git {{sous_commande}}` @@ -27,3 +15,15 @@ - Exécuter une sous-commande Git avec un paramètre de configuration spécifique : `git -c '{{cle_param_config}}={{valeur}}' {{sous_commande}}` + +- Afficher l'aide générale : + +`git --help` + +- Afficher l'aide sur une sous-commande Git : + +`git help {{sous_commande}}` + +- Obtenir la version de Git : + +`git --version` diff --git a/pages.id/common/git-annotate.md b/pages.id/common/git-annotate.md index 0dd6de4c67..2e45d104c8 100644 --- a/pages.id/common/git-annotate.md +++ b/pages.id/common/git-annotate.md @@ -11,7 +11,7 @@ - Tampilkan file dengan informasi komit menggunakan alamat surel/[e]mail daripada nama pelaku: -`git annotate -e {{jalan/menuju/file}}` +`git annotate {{-e|--show-email}} {{jalan/menuju/file}}` - Tampilkan hanya baris-baris teks yang memenuhi kriteria ekspresi reguler: diff --git a/pages.id/common/git-archive.md b/pages.id/common/git-archive.md index 9b7c4c9920..edbd4f36a8 100644 --- a/pages.id/common/git-archive.md +++ b/pages.id/common/git-archive.md @@ -5,24 +5,24 @@ - Buat sebuah arsip tar berisikan isi dari tree HEAD saat ini, kemudian tampilkan isi file arsip mentah menuju `stdout`: -`git archive --verbose HEAD` +`git archive {{-v|--verbose}} HEAD` - Buat sebuah arsip zip dari tree HEAD saat ini, kemudian tampilkan isi file arsip mentah menuju `stdout`: -`git archive --verbose --format zip HEAD` +`git archive {{-v|--verbose}} --format zip HEAD` - Lakukan hal yang sama, namun simpan arsip zip ke dalam suatu direktori: -`git archive --verbose --output {{jalan/menuju/file.zip}} HEAD` +`git archive {{-v|--verbose}} {{-o|--output}} {{jalan/menuju/file.zip}} HEAD` - Buat arsip tar dari komit terakhir pada cabang tertentu: -`git archive --output {{jalan/menuju/file.tar}} {{nama_cabang}}` +`git archive {{-o|--output}} {{jalan/menuju/file.tar}} {{nama_cabang}}` - Buat arsip tar berdasaran subdirektori tertentu pada suatu repositori Git: -`git archive --output {{jalan/menuju/file.tar}} HEAD:{{jalan/menuju/direktori}}` +`git archive {{-o|--output}} {{jalan/menuju/file.tar}} HEAD:{{jalan/menuju/direktori}}` - Bubuhkan nama jalur pada awal nama setiap file, untuk diarsipkan di dalam direktori tertentu: -`git archive --output {{jalan/menuju/file.tar}} --prefix {{jalan/untuk/dibubuhkan}}/ HEAD` +`git archive {{-o|--output}} {{jalan/menuju/file.tar}} --prefix {{jalan/untuk/dibubuhkan}}/ HEAD` diff --git a/pages.id/common/git-blame.md b/pages.id/common/git-blame.md index 4a52290bb0..74eca571cf 100644 --- a/pages.id/common/git-blame.md +++ b/pages.id/common/git-blame.md @@ -9,7 +9,7 @@ - Tampilkan berkas dengan informasi komit menggunakan alamat surel/[e]mail daripada nama pelaku: -`git blame -e {{jalan/menuju/berkas}}` +`git blame {{-e|--show-email}} {{jalan/menuju/berkas}}` - Tampilkan informasi nama pelaku dan kode hash komit terakhir pada berkas yang disimpan dalam komit tertentu: diff --git a/pages.id/common/git-branch.md b/pages.id/common/git-branch.md index 21dccd43cf..97573f4a06 100644 --- a/pages.id/common/git-branch.md +++ b/pages.id/common/git-branch.md @@ -25,11 +25,11 @@ - Ubah nama cabang (harus bukan cabang saat ini untuk melakukannya): -`git branch -m {{nama_cabang_lama}} {{nama_cabang_baru}}` +`git branch {{-m|--move}} {{nama_cabang_lama}} {{nama_cabang_baru}}` - Hapus cabang lokal (harus bukan cabang saat ini untuk melakukannya): -`git branch -d {{nama_cabang}}` +`git branch {{-d|--delete}} {{nama_cabang}}` - Hapus cabang remote: diff --git a/pages.id/common/git-bugreport.md b/pages.id/common/git-bugreport.md index ff0502ab15..41785a5e5c 100644 --- a/pages.id/common/git-bugreport.md +++ b/pages.id/common/git-bugreport.md @@ -9,8 +9,8 @@ - Buat berkas laporan pada direktori tertentu, dan buat direktori tersebut jika belum: -`git bugreport --output-directory {{jalan/menuju/direktori}}` +`git bugreport {{-o|--output-directory}} {{jalan/menuju/direktori}}` - Buat berkas laporan baru, dengan nama berkas diakhiri dengan tanggal pelaporan menurut format `strftime`: -`git bugreport --suffix {{%m%d%y}}` +`git bugreport {{-s|--suffix}} {{%m%d%y}}` diff --git a/pages.id/common/git-bundle.md b/pages.id/common/git-bundle.md index aa7d3c54f4..59bc1eaf9f 100644 --- a/pages.id/common/git-bundle.md +++ b/pages.id/common/git-bundle.md @@ -13,11 +13,11 @@ - Bungkus objek dan referensi untuk lima komit terakhir pada cabang saat ini: -`git bundle create {{jalan/menuju/berkas.bundle}} -{{5}} {{HEAD}}` +`git bundle create {{jalan/menuju/berkas.bundle}} -5 {{HEAD}}` - Bungkus objek dan referensi untuk perubahan sejak 7 hari terakhir: -`git bundle create {{jalan/menuju/berkas.bundle}} --since {{7.days}} {{HEAD}}` +`git bundle create {{jalan/menuju/berkas.bundle}} --since 7.days {{HEAD}}` - Cek apakah suatu berkas bundle bersifat valid dan dapat diaplikasikan ke dalam repositori saat ini: diff --git a/pages.id/common/git-cherry.md b/pages.id/common/git-cherry.md index 8d35a8900a..fb902ebd25 100644 --- a/pages.id/common/git-cherry.md +++ b/pages.id/common/git-cherry.md @@ -5,7 +5,7 @@ - Lihat daftar komit (beserta pesannya) dengan komit-komit serupa pada hulu (upstream): -`git cherry -v` +`git cherry {{-v|--verbose}}` - Gunakan sumber hulu dan cabang topik yang lain: diff --git a/pages.it/common/git-archive.md b/pages.it/common/git-archive.md index 841580c116..fc53d3bd5a 100644 --- a/pages.it/common/git-archive.md +++ b/pages.it/common/git-archive.md @@ -5,24 +5,24 @@ - Crea un archivio tar del contenuto in HEAD e stampa il risultato su standard output: -`git archive --verbose HEAD` +`git archive {{-v|--verbose}} HEAD` - Crea un archivio zip del contenuto in HEAD e stampa il risultato su standard output: -`git archive --verbose --format zip HEAD` +`git archive {{-v|--verbose}} --format zip HEAD` - Come sopra, ma scrivi l'archivio zip su file: -`git archive --verbose --output {{percorso/del/file.zip}} HEAD` +`git archive {{-v|--verbose}} {{-o|--output}} {{percorso/del/file.zip}} HEAD` - Crea un archivio tar dell'ultimo commit sul ramo specificato: -`git archive --output {{percorso/del/file.tar}} {{nome_ramo}}` +`git archive {{-o|--output}} {{percorso/del/file.tar}} {{nome_ramo}}` - Crea un archivio tar del contenuto di una specifica directory: -`git archive --output {{percorso/del/file.tar}} HEAD:{{percorso/della/directory}}` +`git archive {{-o|--output}} {{percorso/del/file.tar}} HEAD:{{percorso/della/directory}}` - Anteponi un percorso ad ogni file cosí da archiviarlo in una directory specifica: -`git archive --output {{percorso/del/file.tar}} --prefix {{percorso/da/anteporre}}/ HEAD` +`git archive {{-o|--output}} {{percorso/del/file.tar}} --prefix {{percorso/da/anteporre}}/ HEAD` diff --git a/pages.it/common/git-blame.md b/pages.it/common/git-blame.md index c4de280024..e119a8c969 100644 --- a/pages.it/common/git-blame.md +++ b/pages.it/common/git-blame.md @@ -9,4 +9,4 @@ - Stampa il contenuto di un file annotando ogni riga con l'hash del commit e l'indirizzo email dell'autore: -`git blame -e {{file}}` +`git blame {{-e|--show-email}} {{file}}` diff --git a/pages.it/common/git-branch.md b/pages.it/common/git-branch.md index ca3a7ecbc6..8ee78c369e 100644 --- a/pages.it/common/git-branch.md +++ b/pages.it/common/git-branch.md @@ -21,8 +21,8 @@ - Rinomina un ramo (non applicabile sul ramo corrente): -`git branch -m {{vecchio_nome}} {{nuovo_nome}}` +`git branch {{-m|--move}} {{vecchio_nome}} {{nuovo_nome}}` - Cancella un ramo locale (non applicabile sul ramo corrente): -`git branch -d {{nome_ramo}}` +`git branch {{-d|--delete}} {{nome_ramo}}` diff --git a/pages.it/common/git-bundle.md b/pages.it/common/git-bundle.md index e73dad6216..35675771b7 100644 --- a/pages.it/common/git-bundle.md +++ b/pages.it/common/git-bundle.md @@ -13,11 +13,11 @@ - Crea un file bundle degli ultimi 5 commit sul ramo corrente: -`git bundle create {{percorso/del/file.bundle}} -{{5}} {{HEAD}}` +`git bundle create {{percorso/del/file.bundle}} -5 {{HEAD}}` - Crea un file bundle degli ultimi 7 giorni: -`git bundle create {{percorso/del/file.bundle}} --since={{7.days}} {{HEAD}}` +`git bundle create {{percorso/del/file.bundle}} --since=7.days {{HEAD}}` - Verifica che un file bundle sia valido e possa essere applicato al repository in uso: diff --git a/pages.it/common/git-cherry-pick.md b/pages.it/common/git-cherry-pick.md index 843a93b716..04d437ec9a 100644 --- a/pages.it/common/git-cherry-pick.md +++ b/pages.it/common/git-cherry-pick.md @@ -14,7 +14,7 @@ - Applica un insieme di commit non sequenziali al ramo corrente: -`git cherry-pick {{commit_1}} {{commit_2}}` +`git cherry-pick {{commit_1 commit_2 ...}}` - Aggiungi le modifiche introdotte da un commit alla directory di lavoro, ma senza creare un nuovo commit: diff --git a/pages.it/common/git-clean.md b/pages.it/common/git-clean.md index 0eb5b28cf3..5419d9895d 100644 --- a/pages.it/common/git-clean.md +++ b/pages.it/common/git-clean.md @@ -9,7 +9,7 @@ - Elimina in modo interattivo i file non tracciati da Git: -`git clean -i` +`git clean {{-i|--interactive}}` - Mostra quali file non tracciati sarebbero eliminati, senza però eliminarli davvero: @@ -17,11 +17,11 @@ - Forza l'eliminazione dei file non tracciati da Git: -`git clean -f` +`git clean {{-f|--force}}` - Forza l'eliminazione delle directory non tracciate da Git: -`git clean -fd` +`git clean {{-f|--force}} -d` - Elimina i file non tracciati, compresi quelli da ignorare elencati in `.gitignore` e `.git/info/exclude`: diff --git a/pages.it/common/git-commit.md b/pages.it/common/git-commit.md index 6caec36f37..b8474da611 100644 --- a/pages.it/common/git-commit.md +++ b/pages.it/common/git-commit.md @@ -17,4 +17,4 @@ - Committa solo i file specificati (tra quelli presenti nell'area di stage): -`git commit {{percorso/del/file1}} {{percorso/del/file2}}` +`git commit {{percorso/del/file1 percorso/del/file2 ...}}` diff --git a/pages.it/common/git-lfs.md b/pages.it/common/git-lfs.md index 9658ace3ed..38784933f8 100644 --- a/pages.it/common/git-lfs.md +++ b/pages.it/common/git-lfs.md @@ -13,7 +13,7 @@ - Cambia l'URL endpoint di Git LFS (utile quando server LFS e server Git sono separati): -`git config -f .lfsconfig lfs.url {{lfs_url_endpoint}}` +`git config {{-f|--file}} .lfsconfig lfs.url {{lfs_url_endpoint}}` - Elenca i criteri tracciati: diff --git a/pages.it/common/git-log.md b/pages.it/common/git-log.md index 30005d5f0c..5ef1515e6d 100644 --- a/pages.it/common/git-log.md +++ b/pages.it/common/git-log.md @@ -9,7 +9,7 @@ - Mostra la cronologia di un dato file o directory, mostrando anche le modifiche: -`git log -p {{percorso/del/file_o_directory}}` +`git log {{-p|-u|--patch}} {{percorso/del/file_o_directory}}` - Offri una panoramica dei file che sono cambiati ad ogni commit: @@ -25,12 +25,12 @@ - Mostra solo i commit il cui messaggio contiene una data stringa (ignorando maiuscole/minuscole): -`git log -i --grep {{stringa_da_cercare}}` +`git log {{-i|--regexp-ignore-case}} --grep {{stringa_da_cercare}}` - Mostra gli ultimi N commit di un certo autore: -`git log -n {{numero}} --author={{autore}}` +`git log {{-n|--max-count}} {{numero}} --author "{{autore}}"` - Mostra i commit effettuati tra due date (yyyy-mm-dd): -`git log --before="{{2017-01-29}}" --after="{{2017-01-17}}"` +`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"` diff --git a/pages.it/common/git-rebase.md b/pages.it/common/git-rebase.md index bfcf250e3a..b4b7a04132 100644 --- a/pages.it/common/git-rebase.md +++ b/pages.it/common/git-rebase.md @@ -10,7 +10,7 @@ - Avvia un rebase interattivo, che consente di riordinare, omettere, unire o modificare i commit: -`git rebase -i {{nome_ramo_o_commit_hash}}` +`git rebase {{-i|--interactive}} {{nome_ramo_o_commit_hash}}` - Prosegui con un rebase che era stato sospeso da un errore di unione, dopo aver risolto i conflitti: @@ -30,8 +30,8 @@ - Applica gli ultimi 5 commit locali, consentendo di riordinarli, ometterli, unirli o modificarli: -`git rebase -i {{HEAD~5}}` +`git rebase {{-i|--interactive}} {{HEAD~5}}` - Risolvi automaticamente i conflitti a favore del ramo di versione corrente (la parola chiave `theirs` ha qui un significato opposto): -`git rebase -X theirs {{nome_ramo}}` +`git rebase {{-X|--strategy-option}} theirs {{nome_ramo}}` diff --git a/pages.it/common/git-reflog.md b/pages.it/common/git-reflog.md index c266dd8ce2..f8eabf1e6c 100644 --- a/pages.it/common/git-reflog.md +++ b/pages.it/common/git-reflog.md @@ -13,4 +13,4 @@ - Mostra le ultime 5 voci del reflog: -`git reflog -n {{5}}` +`git reflog {{-n|--max-count}} 5` diff --git a/pages.it/common/git-remote.md b/pages.it/common/git-remote.md index 9a36d395cd..abb30323a7 100644 --- a/pages.it/common/git-remote.md +++ b/pages.it/common/git-remote.md @@ -5,7 +5,7 @@ - Mostra l'elenco dei collegamenti remoti, con il loro nome e URL: -`git remote -v` +`git remote {{-v|--verbose}}` - Mostra informazioni su un remote: diff --git a/pages.it/common/git-shortlog.md b/pages.it/common/git-shortlog.md index 4c60479898..2825a26134 100644 --- a/pages.it/common/git-shortlog.md +++ b/pages.it/common/git-shortlog.md @@ -9,20 +9,20 @@ - Mostra un riassunto dei commit fatti, ordinati per numero di commit: -`git shortlog -n` +`git shortlog {{-n|--numbered}}` - Mostra un riassunto dei commit fatti, raggruppati per identità dell'utente che ha eseguito il commit (nome e email): -`git shortlog -c` +`git shortlog {{-c|--committer}}` - Mostra un riassunto degli ultimi 5 commit (richiesti sottoforma di intervallo di revisione): -`git shortlog HEAD~{{5}}..HEAD` +`git shortlog HEAD~5..HEAD` - Mostra tutti gli utenti, email e numero di commit nel ramo corrente: -`git shortlog -sne` +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}}` - Mostra tutti gli utenti, email e numero di commit in tutti i rami: -`git shortlog -sne --all` +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}} --all` diff --git a/pages.it/common/git-svn.md b/pages.it/common/git-svn.md index 29c207875a..09e256225c 100644 --- a/pages.it/common/git-svn.md +++ b/pages.it/common/git-svn.md @@ -9,7 +9,7 @@ - Clona un repository SVN a partire da uno specifico numero di revisione: -`git svn clone -r{{1234}}:HEAD {{https://svn.esempio.net/subversion/repo}} {{directory_locale}}` +`git svn clone {{-r|--revision}} {{1234}}:HEAD {{https://svn.esempio.net/subversion/repo}} {{directory_locale}}` - Aggiorna una copia locale da un repository SVN remoto: diff --git a/pages.ja/common/git-commit.md b/pages.ja/common/git-commit.md index 2d152de7ea..518984aa2a 100644 --- a/pages.ja/common/git-commit.md +++ b/pages.ja/common/git-commit.md @@ -21,7 +21,7 @@ - 特定のファイル(ステージ済)だけをコミットする: -`git commit {{ファイルパス1}} {{ファイルパス2}}` +`git commit {{ファイルパス1 ファイルパス2 ...}}` - ステージ済のファイルが無くても、コミットを作る: diff --git a/pages.ja/common/git.md b/pages.ja/common/git.md index c2728421ca..08a8eb857b 100644 --- a/pages.ja/common/git.md +++ b/pages.ja/common/git.md @@ -4,18 +4,6 @@ > いくつかのサブコマンドがあります。例えば `commit`, `add`, `branch`, `checkout`, `push`, などです。 これらには使用方法についての独自のドキュメントがあり、 `tldr git subcommand` で見ることができます。 > 詳しくはこちら: -- Gitのバージョンを確認する: - -`git --version` - -- Git全体のヘルプを見る: - -`git --help` - -- Gitのサブコマンドのヘルプを見る (例えば `clone`, `add`, `push`, `log`, など): - -`git help {{サブコマンド}}` - - Gitのサブコマンドを実行する: `git {{サブコマンド}}` @@ -27,3 +15,15 @@ - Gitのサブコマンドを、指定された設定値で実行する: `git -c '{{config.key}}={{値}}' {{サブコマンド}}` + +- Git全体のヘルプを見る: + +`git --help` + +- Gitのサブコマンドのヘルプを見る (例えば `clone`, `add`, `push`, `log`, など): + +`git help {{サブコマンド}}` + +- Gitのバージョンを確認する: + +`git --version` diff --git a/pages.ko/common/git-bugreport.md b/pages.ko/common/git-bugreport.md index 1e585431ea..c9cfa4e55f 100644 --- a/pages.ko/common/git-bugreport.md +++ b/pages.ko/common/git-bugreport.md @@ -9,8 +9,8 @@ - 지정된 디렉토리에 새로운 버그 보고 파일 생성 (디렉토리가 없을 경우 생성됨): -`git bugreport --output-directory {{경로/대상/폴더}}` +`git bugreport {{-o|--output-directory}} {{경로/대상/폴더}}` - `strftime` 형식의 지정된 파일명 접미사를 사용하여 새로운 버그 보고 파일 생성: -`git bugreport --suffix {{%m%d%y}}` +`git bugreport {{-s|--suffix}} {{%m%d%y}}` diff --git a/pages.ko/common/git-bundle.md b/pages.ko/common/git-bundle.md index d921112def..97b65db5cc 100644 --- a/pages.ko/common/git-bundle.md +++ b/pages.ko/common/git-bundle.md @@ -13,11 +13,11 @@ - 현재 브랜치의 마지막 5개의 커밋을 포함하는 번들 파일 생성: -`git bundle create {{경로/대상/파일.bundle}} -{{5}} {{HEAD}}` +`git bundle create {{경로/대상/파일.bundle}} -5 {{HEAD}}` - 최근 7일간의 커밋을 포함하는 번들 파일 생성: -`git bundle create {{경로/대상/파일.bundle}} --since {{7.days}} {{HEAD}}` +`git bundle create {{경로/대상/파일.bundle}} --since 7.days {{HEAD}}` - 번들 파일이 유효하고 현재 저장소에 적용될 수 있는지 확인: diff --git a/pages.ko/common/git-log.md b/pages.ko/common/git-log.md index 5abf1070ba..cc11a631bf 100644 --- a/pages.ko/common/git-log.md +++ b/pages.ko/common/git-log.md @@ -9,7 +9,7 @@ - 변경 사항을 포함해, 특정 파일 또는 디렉토리의 이력 보기: -`git log {{--patch|-p|-u}} {{경로/대상/파일_또는_폴더}}` +`git log {{-p|-u|--patch}} {{경로/대상/파일_또는_폴더}}` - 각 커밋에서 어떤 파일이 변경되었는지 개요 보기: @@ -29,7 +29,7 @@ - 특정 작성자의 마지막 N개의 커밋 보기: -`git log {{--max-count|-n}} {{개수}} --author "{{작성자}}"` +`git log {{-n|--max-count}} {{개수}} --author "{{작성자}}"` - 두 날짜(yyyy-mm-dd) 사이의 커밋 보기: diff --git a/pages.ko/common/git-shortlog.md b/pages.ko/common/git-shortlog.md index a7cdb6bf61..565be59b82 100644 --- a/pages.ko/common/git-shortlog.md +++ b/pages.ko/common/git-shortlog.md @@ -17,7 +17,7 @@ - 마지막 5개의 커밋 요약 보기(즉, 리비전 범위 지정): -`git shortlog HEAD~{{5}}..HEAD` +`git shortlog HEAD~5..HEAD` - 현재 브랜치에서 모든 사용자, 이메일 및 커밋 수 요약 보기: diff --git a/pages.ko/common/git.md b/pages.ko/common/git.md index 0efce84013..a0d92bc92e 100644 --- a/pages.ko/common/git.md +++ b/pages.ko/common/git.md @@ -4,18 +4,6 @@ > `commit`, `add`, `branch`, `checkout`, `push` 등의 특정 하위 명령어는 고유의 문서가 따로 있습니다. `tldr git subcommand`를 통해 확인할 수 있습니다. > 더 많은 정보: . -- Git 버전 확인: - -`git --version` - -- 일반 도움말 출력: - -`git --help` - -- 하위 명령어 도움말 출력 (`clone`, `add`, `push`, `log`, 등등): - -`git help {{하위_명렁어}}` - - 하위 명령어 실행: `git {{하위_명령어}}` @@ -27,3 +15,15 @@ - 주어진 설정으로 Git 하위 명령어 실행: `git -c '{{설정.키}}={{설정.값}}' {{하위_명령어}}` + +- 일반 도움말 출력: + +`git --help` + +- 하위 명령어 도움말 출력 (`clone`, `add`, `push`, `log`, 등등): + +`git help {{하위_명렁어}}` + +- Git 버전 확인: + +`git --version` diff --git a/pages.ml/common/git.md b/pages.ml/common/git.md index 98db01f382..130493297b 100644 --- a/pages.ml/common/git.md +++ b/pages.ml/common/git.md @@ -4,18 +4,6 @@ > `commit`, `add`, `branch`, `checkout`, `push` മുതലായ ചില ഉപകമാൻഡുകൾക്ക് അവരുടേതായ ഡോക്യുമെന്റേഷൻ ഉണ്ട്, `tldr git {{ഉപകമാൻഡ്}}` വഴി അവ കാണാൻ കഴിയും. > കൂടുതൽ വിവരങ്ങൾ: . -- നിങ്ങൾ ഉപയോഗിക്കുന്ന ഗിറ്റിന്റെ പതിപ്പ് പരിശോധിക്കാൻ: - -`git --version` - -- സഹായ നിർദേശങ്ങൾ കാണുവാൻ: - -`git --help` - -- `clone`, `add`, `push`, `log` പോലുള്ള ഉപകമാൻഡുകളുടെ സഹായ നിർദേശങ്ങൾ കാണുവാൻ: - -`git help {{ഉപകമാൻഡ്}}` - - ഗിറ്റ് ഉപകമാന്റുകൾ എക്സിക്യൂട്ട് ചെയ്യുവാൻ: `git {{ഉപകമാൻഡ്}}` @@ -27,3 +15,15 @@ - ഒരു കോൺഫിഗറേഷൻ സെറ്റ് ഉപയോഗിച്ച് Git ഉപകമാൻഡ് എക്സിക്യൂട്ട് ചെയ്യാൻ: `git -c '{{കോൺഫിഗ്.പേര്}}={{മൂല്യം}}' {{ഉപകമാൻഡ്}}` + +- സഹായ നിർദേശങ്ങൾ കാണുവാൻ: + +`git --help` + +- `clone`, `add`, `push`, `log` പോലുള്ള ഉപകമാൻഡുകളുടെ സഹായ നിർദേശങ്ങൾ കാണുവാൻ: + +`git help {{ഉപകമാൻഡ്}}` + +- നിങ്ങൾ ഉപയോഗിക്കുന്ന ഗിറ്റിന്റെ പതിപ്പ് പരിശോധിക്കാൻ: + +`git --version` diff --git a/pages.pt_BR/common/git-branch.md b/pages.pt_BR/common/git-branch.md index 26fffdb572..3a2cfd4beb 100644 --- a/pages.pt_BR/common/git-branch.md +++ b/pages.pt_BR/common/git-branch.md @@ -25,11 +25,11 @@ - Renomeia uma branch (não precisa fazer checkout para isso): -`git branch -m {{antigo_nome_da_branch}} {{novo_nome_da_branch}}` +`git branch {{-m|--move}} {{antigo_nome_da_branch}} {{novo_nome_da_branch}}` - Exclui a branch local (não precisa fazer checkout para isso): -`git branch -d {{nome_da_branch}}` +`git branch {{-d|--delete}} {{nome_da_branch}}` - Exclui uma branch remota: diff --git a/pages.pt_BR/common/git-commit.md b/pages.pt_BR/common/git-commit.md index cdd3180e46..3405eeeebe 100644 --- a/pages.pt_BR/common/git-commit.md +++ b/pages.pt_BR/common/git-commit.md @@ -25,7 +25,7 @@ - Faz um commit apenas de arquivos específicos (já preparados): -`git commit {{caminho/para/arquivo1}} {{caminho/para/arquivo2}}` +`git commit {{caminho/para/arquivo1 caminho/para/arquivo2 ...}}` - Cria um commit, mesmo se não haja arquivos preparados: diff --git a/pages.pt_BR/common/git-log.md b/pages.pt_BR/common/git-log.md index 34f877b675..777127f9d8 100644 --- a/pages.pt_BR/common/git-log.md +++ b/pages.pt_BR/common/git-log.md @@ -9,7 +9,7 @@ - Mostra o histórico de um arquivo ou diretório determinado, incluindo diferenças: -`git log -p {{caminho/para/arquivo_ou_diretório}}` +`git log {{-p|-u|--patch}} {{caminho/para/arquivo_ou_diretório}}` - Mostra uma visão geral do(s) arquivo(s) alterado(s) em cada commit: @@ -25,12 +25,12 @@ - Mostra apenas os commits cujas mensagem incluem uma determinada cadeia de caracteres (sem distinção entre maiúsculas e minúsculas): -`git log -i --grep {{cadeia_de_caracteres_para_pesquisa}}` +`git log {{-i|--regexp-ignore-case}} --grep {{cadeia_de_caracteres_para_pesquisa}}` - Mostra os últimos N commits de um determinado autor: -`git log -n {{número}} --author={{autor}}` +`git log {{-n|--max-count}} {{número}} --author "{{autor}}"` - Mostra os commits entre duas datas(aaaa-mm-dd): -`git log --before="{{2017-01-29}}" --after="{{2017-01-17}}"` +`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"` diff --git a/pages.pt_BR/common/git-rebase.md b/pages.pt_BR/common/git-rebase.md index b2101d1da4..47d53b3b98 100644 --- a/pages.pt_BR/common/git-rebase.md +++ b/pages.pt_BR/common/git-rebase.md @@ -10,7 +10,7 @@ - Inicia um rebase interativo, que permite os commits serem reordenados, omitidos, combinados ou modificados: -`git rebase -i {{branch_base_alvo_ou_hash_do_commit}}` +`git rebase {{-i|--interactive}} {{branch_base_alvo_ou_hash_do_commit}}` - Continua um rebase que foi interrompido por uma falha de mesclagem, após a edição de arquivos conflitantes: @@ -30,8 +30,8 @@ - Reaplica os últimos 5 commits no local, parando para permitir que eles sejam reordenados, omitidos, combinados ou modificados: -`git rebase -i {{HEAD~5}}` +`git rebase {{-i|--interactive}} {{HEAD~5}}` - Resolve automaticamente quaisquer conflitos favorecendo a versão da branch de trabalho (a palavra-chave `theirs` tem significado invertido nesse caso): -`git rebase -X theirs {{nome_da_branch}}` +`git rebase {{-X|--strategy-option}} theirs {{nome_da_branch}}` diff --git a/pages.pt_BR/common/git-remote.md b/pages.pt_BR/common/git-remote.md index c63c90b806..04761e8995 100644 --- a/pages.pt_BR/common/git-remote.md +++ b/pages.pt_BR/common/git-remote.md @@ -5,7 +5,7 @@ - Mostre uma lista de remotes existentes, seus nomes e URL: -`git remote -v` +`git remote {{-v|--verbose}}` - Mostra infomação de um remote específico: diff --git a/pages.pt_BR/common/git.md b/pages.pt_BR/common/git.md index 79d4b0f361..1219dc5c83 100644 --- a/pages.pt_BR/common/git.md +++ b/pages.pt_BR/common/git.md @@ -4,18 +4,6 @@ > Alguns subcomandos como `commit` tem sua própia documentação de uso. > Mais informações: . -- Verifique a versão do Git: - -`git --version` - -- Mostre ajuda geral: - -`git --help` - -- Mostre ajuda de um subcomando do Git (como `commit`, `log`, etc.): - -`git help {{subcomando}}` - - Execute um subcomando Git: `git {{subcomando}}` @@ -27,3 +15,15 @@ - Execute um subcomando Git com uma dada configuração: `git -c '{{config.chave}}={{valor}}' {{subcomando}}` + +- Mostre ajuda geral: + +`git --help` + +- Mostre ajuda de um subcomando do Git (como `commit`, `log`, etc.): + +`git help {{subcomando}}` + +- Verifique a versão do Git: + +`git --version` diff --git a/pages.sr/common/git.md b/pages.sr/common/git.md index 849bf6905a..960ac46d5f 100644 --- a/pages.sr/common/git.md +++ b/pages.sr/common/git.md @@ -4,18 +4,6 @@ > Neke podkomande kao što je `git commit` imaju svoj primer u dokumentaciji. > Više informacija na: . -- Proverava Git verziju: - -`git --version` - -- Prikazuje opštu pomoć: - -`git --help` - -- Prikazuje pomoć o Git podkomandi (npr. `commit`, `log`, itd.): - -`git help {{podkomanda}}` - - Izvršava Git podkomandu: `git {{podkomanda}}` @@ -27,3 +15,15 @@ - Izvršava Git podkomandu sa zadatim setom konfiguracija: `git -c '{{config.key}}={{value}}' {{podkomanda}}` + +- Prikazuje opštu pomoć: + +`git --help` + +- Prikazuje pomoć o Git podkomandi (npr. `commit`, `log`, itd.): + +`git help {{podkomanda}}` + +- Proverava Git verziju: + +`git --version` diff --git a/pages.ta/common/git-bundle.md b/pages.ta/common/git-bundle.md index 85b1dee258..5e138db51d 100644 --- a/pages.ta/common/git-bundle.md +++ b/pages.ta/common/git-bundle.md @@ -13,11 +13,11 @@ - தற்போதைய கிளையின் கடைசி 5 கமிட்டுகளின் மூட்டை கோப்பை உருவாக்கவும்: -`git bundle create {{கோப்பு.bundle/பாதை}} -{{5}} {{HEAD}}` +`git bundle create {{கோப்பு.bundle/பாதை}} -5 {{HEAD}}` - சமீபத்திய 7 நாட்களின் மூட்டை கோப்பை உருவாக்கவும்: -`git bundle create {{கோப்பு.bundle/பாதை}} --since={{7.days}} {{HEAD}}` +`git bundle create {{கோப்பு.bundle/பாதை}} --since=7.days {{HEAD}}` - ஒரு மூட்டை கோப்பு தற்போதைய களஞ்சியத்தில் செல்லுபடியாகும் மற்றும் பயன்படுத்தலாம் என்பதை சரிபார்க்கவும்: diff --git a/pages.tr/common/git-annotate.md b/pages.tr/common/git-annotate.md index ff14bdd310..bf962a65bb 100644 --- a/pages.tr/common/git-annotate.md +++ b/pages.tr/common/git-annotate.md @@ -11,4 +11,4 @@ - Bir dosyayı, her satırında son commit değeri ve yazarının [e]-postası bulunacak şekilde göster: -`git annotate -e {{örnek/dosya}}` +`git annotate {{-e|--show-email}} {{örnek/dosya}}` diff --git a/pages.tr/common/git-archive.md b/pages.tr/common/git-archive.md index 80628bf45e..0688f773ca 100644 --- a/pages.tr/common/git-archive.md +++ b/pages.tr/common/git-archive.md @@ -5,24 +5,24 @@ - Mevcut HEAD'deki içerik ile bir tar arşivi oluştur ve içeriği standart çıktı biçiminde göster: -`git archive --verbose HEAD` +`git archive {{-v|--verbose}} HEAD` - Mevcut HEAD'deki içerik ile bir zip arşivi oluştur ve içeriği standart çıktı biçiminde göster: -`git archive --verbose --format zip HEAD` +`git archive {{-v|--verbose}} --format zip HEAD` - Yukarıda yazan madde ile aynı şeyi yap, ama zip arşivini belirtilen dosya olarak yaz: -`git archive --verbose --output {{örnek/arşiv/dosyası.zip}} HEAD` +`git archive {{-v|--verbose}} {{-o|--output}} {{örnek/arşiv/dosyası.zip}} HEAD` - Belirtilmiş bir daldaki son commitlerin içeriğinden bir tar arşivi oluştur: -`git archive --output {{örnek/arşiv/dosyası.tar}} {{dal_ismi}}` +`git archive {{-o|--output}} {{örnek/arşiv/dosyası.tar}} {{dal_ismi}}` - Belirtilmiş bir dizindeki içeriklerden tar arşivi oluştur: -`git archive --output {{örnek/arşiv/dosyası.tar}} HEAD:{{örnek/dizin}}` +`git archive {{-o|--output}} {{örnek/arşiv/dosyası.tar}} HEAD:{{örnek/dizin}}` - Bir takım dosyayı belirtilmiş bir dizinin içinde arşivlemek için başlarına yol ekle: -`git archive --output {{örnek/arşiv/dosyası.tar}} --prefix {{başlarına/yol/eklenecek/dosyalar}}/ HEAD` +`git archive {{-o|--output}} {{örnek/arşiv/dosyası.tar}} --prefix {{başlarına/yol/eklenecek/dosyalar}}/ HEAD` diff --git a/pages.tr/common/git-blame.md b/pages.tr/common/git-blame.md index afdf0ba58f..e371b69a46 100644 --- a/pages.tr/common/git-blame.md +++ b/pages.tr/common/git-blame.md @@ -9,4 +9,4 @@ - Bir dosyayı, her satırında son commit değeri ve yazarının e-postası bulunacak şekilde göster: -`git blame -e {{örnek/dosya}}` +`git blame {{-e|--show-email}} {{örnek/dosya}}` diff --git a/pages.tr/common/git-branch.md b/pages.tr/common/git-branch.md index 6cfeaaadae..aa63081e81 100644 --- a/pages.tr/common/git-branch.md +++ b/pages.tr/common/git-branch.md @@ -21,11 +21,11 @@ - Bir dalı yeniden adlandır: -`git branch -m {{eski_dal_ismi}} {{yeni_dal_ismi}}` +`git branch {{-m|--move}} {{eski_dal_ismi}} {{yeni_dal_ismi}}` - Yerel bir dalı sil: -`git branch -d {{dal_ismi}}` +`git branch {{-d|--delete}} {{dal_ismi}}` - Uzaktaki bir dalı sil: diff --git a/pages.tr/common/git-bugreport.md b/pages.tr/common/git-bugreport.md index eaf3db5337..4f04d9cd44 100644 --- a/pages.tr/common/git-bugreport.md +++ b/pages.tr/common/git-bugreport.md @@ -9,8 +9,8 @@ - Belirtilen dizinde yeni bir hata rapor dosyası oluştur: -`git bugreport --output-directory {{örnek/dizin}}` +`git bugreport {{-o|--output-directory}} {{örnek/dizin}}` - `strftime` formatında belirtilmiş bir dosya adı ekiyle yeni bir rapor dosyası oluştur: -`git bugreport --suffix {{%m%d%y}}` +`git bugreport {{-s|--suffix}} {{%m%d%y}}` diff --git a/pages.tr/common/git-bundle.md b/pages.tr/common/git-bundle.md index 9bb669bdaf..78e578ecbe 100644 --- a/pages.tr/common/git-bundle.md +++ b/pages.tr/common/git-bundle.md @@ -13,11 +13,11 @@ - Mevcut daldaki en son 5 commit için bir paket dosyası oluştur: -`git bundle create {{örnek/dosya.bundle}} -{{5}} {{HEAD}}` +`git bundle create {{örnek/dosya.bundle}} -5 {{HEAD}}` - Son 7 günü içeren bir paket dosyası oluştur: -`git bundle create {{örnek/dosya.bundle}} --since={{7.days}} {{HEAD}}` +`git bundle create {{örnek/dosya.bundle}} --since=7.days {{HEAD}}` - Bir paket dosyasının geçerli olduğunu ve mevcut depoya uygulanabileceğini doğrula: diff --git a/pages.tr/common/git-cherry-pick.md b/pages.tr/common/git-cherry-pick.md index 55b85ddf98..cf54f6c908 100644 --- a/pages.tr/common/git-cherry-pick.md +++ b/pages.tr/common/git-cherry-pick.md @@ -14,7 +14,7 @@ - Mevcut dala birçok (ardışık olmayan) commit uygula: -`git cherry-pick {{commit_1}} {{commit_2}}` +`git cherry-pick {{commit_1 commit_2 ...}}` - Bir commit'in değişikliklerini, herhangi bir yeni commit oluşturmadan çalışan dizine ekle: diff --git a/pages.tr/common/git-cherry.md b/pages.tr/common/git-cherry.md index 55d6611b56..f5ac9276b9 100644 --- a/pages.tr/common/git-cherry.md +++ b/pages.tr/common/git-cherry.md @@ -5,7 +5,7 @@ - Commit'leri (ve mesajlarını) ana akımda kendilerine tekabül eden commit'ler ile göster: -`git cherry -v` +`git cherry {{-v|--verbose}}` - Farklı bir ana akım ve konu dalı belirt: diff --git a/pages.tr/common/git-clean.md b/pages.tr/common/git-clean.md index f81eb82511..17f3e87008 100644 --- a/pages.tr/common/git-clean.md +++ b/pages.tr/common/git-clean.md @@ -9,7 +9,7 @@ - Git tarafından takip edilmeyen dosyaları etkileşimli bir nizamda sil: -`git clean -i` +`git clean {{-i|--interactive}}` - Hangi dosyaların silinmeye aday olduğunu onları silmeden göster: @@ -17,11 +17,11 @@ - Git tarafından takip edilmeyen dosyaları zorla zil: -`git clean -f` +`git clean {{-f|--force}}` - Git tarafından takip edilmeyen dizinleri zorla zil: -`git clean -fd` +`git clean {{-f|--force}} -d` - `.gitignore` ve `.git/info/exclude`'deki yoksayılan dosyalar dahiş olmak üzere takip edilmeyen dosyaları sil: diff --git a/pages.tr/common/git-commit.md b/pages.tr/common/git-commit.md index b14153e5e2..e1bcf3cc32 100644 --- a/pages.tr/common/git-commit.md +++ b/pages.tr/common/git-commit.md @@ -17,4 +17,4 @@ - Yalnızca belirtilmiş (halihazırda sahnelenmiş) dosyaları commit'le: -`git commit {{örnek/dosya1}} {{örnek/dosya2}}` +`git commit {{örnek/dosya1 örnek/dosya2 ...}}` diff --git a/pages.tr/common/git-lfs.md b/pages.tr/common/git-lfs.md index 44076d3d4c..83ebccde81 100644 --- a/pages.tr/common/git-lfs.md +++ b/pages.tr/common/git-lfs.md @@ -13,7 +13,7 @@ - Git LFS uç nokta URL'sini değiştir (LFS sunucusunun Git sunucusundan ayrı olması durumunda işlevseldir): -`git config -f .lfsconfig lfs.url {{lfs_uç_nokta_url'si}}` +`git config {{-f|--file}} .lfsconfig lfs.url {{lfs_uç_nokta_url'si}}` - İzlenen kalıpları sırala: diff --git a/pages.tr/common/git-log.md b/pages.tr/common/git-log.md index 38cb54b328..bd344ca145 100644 --- a/pages.tr/common/git-log.md +++ b/pages.tr/common/git-log.md @@ -9,7 +9,7 @@ - Belirtilen dosya veya dizinin tarihini farklılıklarla beraber göster: -`git log -p {{dosya/veya/dizin/konumu}}` +`git log {{-p|-u|--patch}} {{dosya/veya/dizin/konumu}}` - Her bir commit'de hangi dosya(lar)ın değiştiğinin önizlemesini göster: @@ -25,12 +25,12 @@ - Mesajları yalnızca belirtilen ifadeleri içeren commit'leri göster (büyük-küçük harfe duyarsız): -`git log -i --grep {{aranan_ifade}}` +`git log {{-i|--regexp-ignore-case}} --grep {{aranan_ifade}}` - Belirtilmiş yazardan gelen, belirtilen sayıda commit göster: -`git log -n {{sayı}} --author={{yazar}}` +`git log {{-n|--max-count}} {{sayı}} --author "{{yazar}}"` - İki tarih arasında yapılmış commit'leri göster: -`git log --before="{{tarih}}" --after="{{tarih}}"` +`git log --before "{{tarih}}" --after "{{tarih}}"` diff --git a/pages.tr/common/git-merge.md b/pages.tr/common/git-merge.md index 8d91b01cb6..b936b88b6c 100644 --- a/pages.tr/common/git-merge.md +++ b/pages.tr/common/git-merge.md @@ -9,7 +9,7 @@ - Birleştirme mesajını düzenle: -`git merge -e {{dal_ismi}}` +`git merge {{-e|--show-email}} {{dal_ismi}}` - Bir dalı birleştir ve birleştirme commit'i oluştur: diff --git a/pages.tr/common/git-rebase.md b/pages.tr/common/git-rebase.md index 90b0e8c2f0..a05318a07b 100644 --- a/pages.tr/common/git-rebase.md +++ b/pages.tr/common/git-rebase.md @@ -10,7 +10,7 @@ - Commit'lerin sıralanması, çıkartılması, birleştirilmesi veya modifiye edilmesine izin vermek için tekrar temellemeyi etkileşimli olacak şekilde başlat: -`git rebase -i {{hedef_taban_dalı_veya_commit_değeri}}` +`git rebase {{-i|--interactive}} {{hedef_taban_dalı_veya_commit_değeri}}` - Bir birleştirme hatası tarafından durdurulan tekrar temelleme işlemini çekişen dosyaları düzenledikten sonra devam ettir: @@ -30,8 +30,8 @@ - Son 3 commit'i etkileşimli olmayacak şekilde yeniden uygula: -`git rebase -i {{HEAD~5}}` +`git rebase {{-i|--interactive}} {{HEAD~5}}` - Herhangi bir çatışmayı çalışan dal sürümünü kurtarmak üzere otomatik olarak çöz (`theirs` argümanı burada ters anlama sahip): -`git rebase -X theirs {{dal_ismi}}` +`git rebase {{-X|--strategy-option}} theirs {{dal_ismi}}` diff --git a/pages.tr/common/git-reflog.md b/pages.tr/common/git-reflog.md index 2b2129115d..7ee6763e8d 100644 --- a/pages.tr/common/git-reflog.md +++ b/pages.tr/common/git-reflog.md @@ -13,4 +13,4 @@ - Referans kaydında sadece son 5 değişimi göster: -`git reflog -n {{5}}` +`git reflog {{-n|--max-count}} 5` diff --git a/pages.tr/common/git-remote.md b/pages.tr/common/git-remote.md index c6af2b30ea..ea1ba39ee0 100644 --- a/pages.tr/common/git-remote.md +++ b/pages.tr/common/git-remote.md @@ -5,7 +5,7 @@ - Varolan uzak bağlantıların isim ve URL'leriyle bir listesini göster: -`git remote -v` +`git remote {{-v|--verbose}}` - Uzak bağlantı ile ilgili bilgi göster: diff --git a/pages.tr/common/git-shortlog.md b/pages.tr/common/git-shortlog.md index ebefb42352..cb56a839be 100644 --- a/pages.tr/common/git-shortlog.md +++ b/pages.tr/common/git-shortlog.md @@ -9,20 +9,20 @@ - Yapılan tüm commit'lerin en çok commit yapan yazar ismi en üstte olacak şekilde özetini göster: -`git shortlog -n` +`git shortlog {{-n|--numbered}}` - Yapılan tüm commit'lerin yazar bilgilerini (isim ve e-posta) gösterecek şekilde özetini göster: -`git shortlog -c` +`git shortlog {{-c|--committer}}` - En son yapılan 5 commit'in özetini göster (sürüm aralığı belirt): -`git shortlog HEAD~{{5}}..HEAD` +`git shortlog HEAD~5..HEAD` - Mevcut daldaki tüm kullanıcıları, e-postalarını ve yaptıkları commit sayısını göster: -`git shortlog -sne` +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}}` - Tüm dallardaki tüm kullanıcıları, e-postalarını ve yaptıkları commit sayısını göster: -`git shortlog -sne --all` +`git shortlog {{-s|--summary}} {{-n|--numbered}} {{-e|--email}} --all` diff --git a/pages.tr/common/git-svn.md b/pages.tr/common/git-svn.md index efcdd693c7..eb2069e3b9 100644 --- a/pages.tr/common/git-svn.md +++ b/pages.tr/common/git-svn.md @@ -9,7 +9,7 @@ - Bir SVN deposunu belirtilen düzenleme numarasından başlayarak klonla: -`git svn clone -r{{1234}}:HEAD {{https://svn.ornek.net/altsürüm/depo}} {{yerel_dizin}}` +`git svn clone {{-r|--revision}} {{1234}}:HEAD {{https://svn.ornek.net/altsürüm/depo}} {{yerel_dizin}}` - Uzak SVN deposundan yerel klonu güncelle: diff --git a/pages.tr/common/git.md b/pages.tr/common/git.md index 3f44b9e67f..0245a8172d 100644 --- a/pages.tr/common/git.md +++ b/pages.tr/common/git.md @@ -3,18 +3,6 @@ > Dağıtım sürüö kontrol sistemi. > Daha fazla bilgi için: . -- Git sürümünü kontrol et: - -`git --version` - -- Genel yardım sayfasını görüntüle: - -`git --help` - -- Bir Git alt komutu (`commit`, `log` gibi) için yardım sayfasını görüntüle: - -`git help {{alt_komut}}` - - Bit Git alt komutunu çalıştır: `git {{alt_komut}}` @@ -26,3 +14,15 @@ - Bir Git alt komutunu belirtilen biçimlendirmeye uygun olarak çalıştır: `git -c '{{config.key}}={{değer}}' {{alt_komut}}` + +- Genel yardım sayfasını görüntüle: + +`git --help` + +- Bir Git alt komutu (`commit`, `log` gibi) için yardım sayfasını görüntüle: + +`git help {{alt_komut}}` + +- Git sürümünü kontrol et: + +`git --version` diff --git a/pages.uk/common/git-commit.md b/pages.uk/common/git-commit.md index 1fb6c58183..a16990447f 100644 --- a/pages.uk/common/git-commit.md +++ b/pages.uk/common/git-commit.md @@ -21,7 +21,7 @@ - Комітить тільки певні (вже індексовані) файли: -`git commit {{шлях/до/файлу1}} {{шлях/до/файлу2}}` +`git commit {{шлях/до/файлу1 шлях/до/файлу2 ...}}` - Створює коміт, навіть якщо немає жодного індексованого файлу: diff --git a/pages.uk/common/git-merge.md b/pages.uk/common/git-merge.md index c7a45612f8..948a730b10 100644 --- a/pages.uk/common/git-merge.md +++ b/pages.uk/common/git-merge.md @@ -9,7 +9,7 @@ - Редагує повідомлення при злитті гілок: -`git merge -e {{назва_гілки}}` +`git merge {{-e|--show-email}} {{назва_гілки}}` - Зливає гілки і створює комміт злиття: diff --git a/pages.uk/common/git.md b/pages.uk/common/git.md index a8bc120896..4ae8fbcd34 100644 --- a/pages.uk/common/git.md +++ b/pages.uk/common/git.md @@ -4,18 +4,6 @@ > Деякі команди, як от `git commit`, мають свою власну документацію. > Більше інформації: . -- Перевіряє версію Git: - -`git --version` - -- Показує базову допомогу: - -`git --help` - -- Показує допомогу з певної підкоманди Git (наприклад, `commit`, `log` чи іншої): - -`git help {{підкоманда}}` - - Виконує підкоманду Git: `git {{підкоманда}}` @@ -27,3 +15,15 @@ - Виконує команду Git із вказаними параметрами: `git -c '{{config.key}}={{значення}}' {{підкоманда}}` + +- Показує базову допомогу: + +`git --help` + +- Показує допомогу з певної підкоманди Git (наприклад, `commit`, `log` чи іншої): + +`git help {{підкоманда}}` + +- Перевіряє версію Git: + +`git --version` diff --git a/pages.zh/common/git-log.md b/pages.zh/common/git-log.md index 6db814218b..85cdb325a1 100644 --- a/pages.zh/common/git-log.md +++ b/pages.zh/common/git-log.md @@ -9,7 +9,7 @@ - 查看指定文件或指定目录的历史,包括每次提交所引入的差异: -`git log -p {{路径/到/文件或目录}}` +`git log {{-p|-u|--patch}} {{路径/到/文件或目录}}` - 显示每次提交的文件修改统计信息: @@ -25,12 +25,12 @@ - 查看提交消息中包含特定字符串(大小写敏感)的提交: -`git log -i --grep {{字符串}}` +`git log {{-i|--regexp-ignore-case}} --grep {{字符串}}` - 查看特定作者的最近 N 条提交: -`git log -n {{数字}} --author={{作者}}` +`git log {{-n|--max-count}} {{数字}} --author "{{作者}}"` - 查看两个日期之间的提交(yyyy-mm-dd): -`git log --before="{{2017-01-29}}" --after="{{2017-01-17}}"` +`git log --before "{{2017-01-29}}" --after "{{2017-01-17}}"` diff --git a/pages.zh/common/git-rebase.md b/pages.zh/common/git-rebase.md index 485903a2a0..277affba4e 100644 --- a/pages.zh/common/git-rebase.md +++ b/pages.zh/common/git-rebase.md @@ -10,7 +10,7 @@ - 启动交互式的合并任务,允许对提交的内容进行重新排序、省略、合并或修改: -`git rebase -i {{目标分支或 commit 的 hash}}` +`git rebase {{-i|--interactive}} {{目标分支或 commit 的 hash}}` - 处理完冲突文件后,继续执行合并任务: @@ -30,8 +30,8 @@ - 启动交互式的合并任务,对最近提交的 5 个 commits 进行重新排序、省略、合并或修改: -`git rebase -i {{HEAD~5}}` +`git rebase {{-i|--interactive}} {{HEAD~5}}` - 以当前分支优先的策略,自动处理分支间的冲突,执行合并: -`git rebase -X theirs {{分支名称}}` +`git rebase {{-X|--strategy-option}} theirs {{分支名称}}` diff --git a/pages.zh/common/git-remote.md b/pages.zh/common/git-remote.md index 733afb5444..0edf84d1f7 100644 --- a/pages.zh/common/git-remote.md +++ b/pages.zh/common/git-remote.md @@ -5,7 +5,7 @@ - 列出已经存在的远程仓库,包括它们的名字和 URL: -`git remote -v` +`git remote {{-v|--verbose}}` - 查看某个远程仓库的信息: diff --git a/pages.zh/common/git.md b/pages.zh/common/git.md index ef57cb4b1f..0cb3d6a459 100644 --- a/pages.zh/common/git.md +++ b/pages.zh/common/git.md @@ -4,18 +4,6 @@ > 类似如 `commit`、`add`、`branch`、`checkout`、`push` 等子命令都有自己的使用文档,可以通过 `tldr git {{子命令}}` 的形式查阅。 > 更多信息:. -- 检查 git 的版本号: - -`git --version` - -- 显示帮助文档: - -`git --help` - -- 显示 git 子命令的详细帮助文档(如 `clone`, `add`, `push`, `log` 等子命令): - -`git help {{子命令}}` - - 执行 git 的子命令: `git {{子命令}}` @@ -27,3 +15,15 @@ - 在给定参数条件下,执行 git 的子命令: `git -c '{{配置项}}={{值}}' {{子命令}}` + +- 显示帮助文档: + +`git --help` + +- 显示 git 子命令的详细帮助文档(如 `clone`, `add`, `push`, `log` 等子命令): + +`git help {{子命令}}` + +- 检查 git 的版本号: + +`git --version` diff --git a/pages/common/git-bugreport.md b/pages/common/git-bugreport.md index dae5da4716..c120489ba9 100644 --- a/pages/common/git-bugreport.md +++ b/pages/common/git-bugreport.md @@ -9,8 +9,8 @@ - Create a new bug report file in the specified directory, creating it if it does not exist: -`git bugreport --output-directory {{path/to/directory}}` +`git bugreport {{-o|--output-directory}} {{path/to/directory}}` - Create a new bug report file with the specified filename suffix in `strftime` format: -`git bugreport --suffix {{%m%d%y}}` +`git bugreport {{-s|--suffix}} {{%m%d%y}}` diff --git a/pages/common/git-bundle.md b/pages/common/git-bundle.md index 9929790961..0d3a041a23 100644 --- a/pages/common/git-bundle.md +++ b/pages/common/git-bundle.md @@ -13,11 +13,11 @@ - Create a bundle file of the last 5 commits of the current branch: -`git bundle create {{path/to/file.bundle}} -{{5}} {{HEAD}}` +`git bundle create {{path/to/file.bundle}} -5 {{HEAD}}` - Create a bundle file of the latest 7 days: -`git bundle create {{path/to/file.bundle}} --since {{7.days}} {{HEAD}}` +`git bundle create {{path/to/file.bundle}} --since 7.days {{HEAD}}` - Verify that a bundle file is valid and can be applied to the current repository: diff --git a/pages/common/git-log.md b/pages/common/git-log.md index d9da9be465..136700a76f 100644 --- a/pages/common/git-log.md +++ b/pages/common/git-log.md @@ -9,7 +9,7 @@ - Show the history of a particular file or directory, including differences: -`git log {{--patch|-p|-u}} {{path/to/file_or_directory}}` +`git log {{-p|-u|--patch}} {{path/to/file_or_directory}}` - Show an overview of which file(s) changed in each commit: @@ -29,7 +29,7 @@ - Show the last N number of commits from a certain author: -`git log {{--max-count|-n}} {{number}} --author "{{author}}"` +`git log {{-n|--max-count}} {{number}} --author "{{author}}"` - Show commits between two dates (yyyy-mm-dd): diff --git a/pages/common/git-shortlog.md b/pages/common/git-shortlog.md index 224f4aa668..9138f3ea08 100644 --- a/pages/common/git-shortlog.md +++ b/pages/common/git-shortlog.md @@ -17,7 +17,7 @@ - View a summary of the last 5 commits (i.e. specify a revision range): -`git shortlog HEAD~{{5}}..HEAD` +`git shortlog HEAD~5..HEAD` - View all users, emails and the number of commits in the current branch: