{"id":25556937,"url":"https://github.com/kevin-doolaeghe/git","last_synced_at":"2026-01-26T11:35:49.285Z","repository":{"id":181214592,"uuid":"466430348","full_name":"kevin-doolaeghe/git","owner":"kevin-doolaeghe","description":"Git Commands Reference","archived":false,"fork":false,"pushed_at":"2022-06-17T23:25:25.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T11:37:59.275Z","etag":null,"topics":["documentation"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevin-doolaeghe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-03-05T11:12:29.000Z","updated_at":"2022-03-05T11:13:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9fdea9b-ab2c-427e-bb24-9cd34cb6216e","html_url":"https://github.com/kevin-doolaeghe/git","commit_stats":null,"previous_names":["kevin-doolaeghe/git"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevin-doolaeghe/git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevin-doolaeghe","download_url":"https://codeload.github.com/kevin-doolaeghe/git/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevin-doolaeghe%2Fgit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28777014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T09:42:00.929Z","status":"ssl_error","status_checked_at":"2026-01-26T09:42:00.591Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["documentation"],"created_at":"2025-02-20T14:56:18.930Z","updated_at":"2026-01-26T11:35:49.262Z","avatar_url":"https://github.com/kevin-doolaeghe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git | Commandes\n\n## Auteur\n### Kevin DOOLAEGHE\n\n## Sources\n* [Git - Reference](https://git-scm.com/docs)\n* [Git Cheat Sheets](https://training.github.com/)\n* [Clone HTTPs repositories - `gh auth login`](https://cli.github.com/manual/gh_auth_login)\n* [Github on CLI (`gh` command)](https://github.com/cli/cli/blob/trunk/docs/install_linux.md)\n\n## Commandes\n\n### Commandes de base\n\n→ Afficher l'aide :\n* `git help [-a]`\n* `git`\n\n→ Définir le nom d'utilisateur et son email :\n* `git config --global --list`\n* `git config --global user.name \"Nom\"`\n* `git config --global user.email \"E-mail\"`\n* `git config --global --unset-all user.name`\n* `git config --global --replace-all user.name \"Nouveau nom\"`\n\n→ Afficher les logs :\n* `git log \u003coption\u003e`\n* `-(n)` : Afficher les n derniers commits\n* `--since`, `--after` : Afficher les commits après une date\n* `--until`, `--before` : Afficher les commits avant une date\n* `--author` : Afficher les commits d'un auteur\n* `-S` : Afficher les commits contenant la chaîne de caractères\n\n→ Afficher le statut du dépôt :\n* `git status`\n\n→ Afficher les modifications qui ne sont pas encore indexées :\n* `git diff`\n\n→ Initialiser un dépôt :\n* `git init`\n\n### Gestion des fichiers\n\n→ Ajouter des fichiers au suivi de version :\n* `git add \u003cfichier\u003e`\n* `git add *`\n\n→ Effacer des fichiers indexés :\n* `git rm \u003cfichier\u003e`\n\n→ Déplacer des fichiers :\n* `git mv \u003csrc\u003e \u003cdst\u003e`\n\n→ Ignorer des fichiers :\n* Créer un fichier `.gitignore`\n* Renseigner les fichiers ou la forme des fichiers\n\n→ Faire un commit :\n* `git commit -a -m \"message\"`\n\n### Gestion des branches\n\n→ Ajouter une branche :\n* `git branch \u003cbranche\u003e`\n* `git checkout -b \u003cbranche\u003e`\n\n→ Supprimer une branche :\n* `git branch -d \u003cbranche\u003e`\n\n→ Changer de branche :\n* `git checkout \u003cbranche\u003e`\n\n→ Pousser la branche :\n* `git push --set-upstream origin \u003cbranche\u003e`\n\n→ Fusionner deux branches :\n* `git checkout \u003cdst\u003e`\n* `git merge \u003csrc\u003e [-no-ff]`\n\n### Fonctionnement en distant\n\n→ Cloner un dépôt distant :\n* `git clone \u003curl\u003e`\n* `git clone \u003curl\u003e --branch \u003cbranche\u003e`\n* `git clone https://[utilisateur]:[mot de passe]@[projet]`\n\n→ Afficher la liste des dépôts distants enregistrés :\n* `git remote`\n\n→ Ajouter un dépôt distant :\n* `git remote add \u003cnom\u003e \u003curl\u003e`\n\n→ Renommer un dépôt distant :\n* `git remote rename \u003cancien\u003e \u003cnouveau\u003e`\n\n→ Récupérer les informations sans les ajouter à la branche courante :\n* `git fetch \u003cnom\u003e`\n\n→ Récupérer les information et les ajouter à la branche courante :\n* `git pull origin \u003cbranch\u003e`\n\n→ Pousser son travail sur un dépôt distant :\n* `git push origin \u003cbranch\u003e`\n* La branche par défaut est `master`\n\n→ Inspecter un dépôt distant :\n* `git remote show [n]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-doolaeghe%2Fgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevin-doolaeghe%2Fgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevin-doolaeghe%2Fgit/lists"}