{"id":20391623,"url":"https://github.com/virginiegodfrin/la_chose","last_synced_at":"2026-06-08T05:32:09.959Z","repository":{"id":102580529,"uuid":"93042618","full_name":"VirginieGodfrin/la_chose","owner":"VirginieGodfrin","description":"Essentiel des commandes git","archived":false,"fork":false,"pushed_at":"2017-06-03T15:39:39.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T00:54:06.888Z","etag":null,"topics":["git"],"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/VirginieGodfrin.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-01T09:52:33.000Z","updated_at":"2017-06-01T13:16:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab5b27aa-778c-42ce-9e05-21f18dda9ef3","html_url":"https://github.com/VirginieGodfrin/la_chose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VirginieGodfrin/la_chose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirginieGodfrin%2Fla_chose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirginieGodfrin%2Fla_chose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirginieGodfrin%2Fla_chose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirginieGodfrin%2Fla_chose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VirginieGodfrin","download_url":"https://codeload.github.com/VirginieGodfrin/la_chose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirginieGodfrin%2Fla_chose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34050224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["git"],"created_at":"2024-11-15T03:34:49.121Z","updated_at":"2026-06-08T05:32:09.941Z","avatar_url":"https://github.com/VirginieGodfrin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Commandes git\n\n\u003e Espace de travail =\u003e stage =\u003e head\n\n## Les basiques\n* _git init_ : création du git  \n* _git clone https://github.com/..._ : cloner un projet distant  \n* _git status_ : montre les fichiers modifiés  \n* _git add ._ : ajoute tous les fichiers au stage  \n* _git commit -m\"...\"_ : crée un commit avec un commentaire  \n* _git log --summary_ : montre les différents commits exécutés  \n\n* _git remote add origin https://github.com/..._: Création du repo sur un serveur distant  \n* _git push_ : envoie au serveur distant  \n\n* _git pull_ : mets à jour le fichier local suite à des modifs sur le serveur distant  \n* _git diff HEAD_ : montre les différences dans le head  \n* _git diff __staged : montre les différences dans le stage\n\n## Les branches  \n* _git branch fin_: creation de la branche fin\n* _git push origin fin_: creation de la branche fin sur le serveur distant  \n* _git checkout fin_: on se positionne sur la branche fin  \n* _git checkout master_: on se positionne sur la branche master  \n* _git branch_: montre sur quelle branche on travaille  \n* _git branch -D fin_: supprime la branche fin  \n* _git rebase_: fusionne deux branches qui ont évoluées parallèlement  \n\n\n* __Mettre à jour la branche master après modif sur la branche fin__  \n1_ Toujours sur la branche fin, commitez les dernières modifs sur la branche fin : _git commit -m\"last change\"_  \n2_ Se positionner sur la branche master : _git checkout master_  \n3_ Fusionner la branche fin dans la branche master : _git merge fin_  \n4_ Supression d'une branche : _git branch -d clean-up_  \n\n*__Cherry-pick\n* _git cherry-pick d42c389f d67h789s d78h890g _: copie les commits d42c389f d67h789s d78h890g sous votre emplacement actuel (HEAD)\n\n\n## Sources et liens \n[Git guide](http://rogerdudler.github.io/git-guide/index.fr.html) // [Try github](https://try.github.io/levels/1/challenges/1) // [Learn Git Branching](http://learngitbranching.js.org/)  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirginiegodfrin%2Fla_chose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirginiegodfrin%2Fla_chose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirginiegodfrin%2Fla_chose/lists"}