{"id":27772193,"url":"https://github.com/leandroffdev/github","last_synced_at":"2026-01-24T01:35:33.903Z","repository":{"id":207435919,"uuid":"430038993","full_name":"leandroffdev/github","owner":"leandroffdev","description":"Comandos básicos github","archived":false,"fork":false,"pushed_at":"2021-11-20T08:41:08.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T23:06:03.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/leandroffdev.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":"2021-11-20T07:33:59.000Z","updated_at":"2021-11-20T08:41:12.000Z","dependencies_parsed_at":"2023-11-15T20:37:07.921Z","dependency_job_id":null,"html_url":"https://github.com/leandroffdev/github","commit_stats":null,"previous_names":["leandrofff/github","leandroffdev/github"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroffdev%2Fgithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroffdev%2Fgithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroffdev%2Fgithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroffdev%2Fgithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leandroffdev","download_url":"https://codeload.github.com/leandroffdev/github/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251596689,"owners_count":21615018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-04-29T23:06:06.866Z","updated_at":"2026-01-24T01:35:33.868Z","avatar_url":"https://github.com/leandroffdev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Olá este projeto ensina você a usar o Git:desktop_computer:\n\n# Comandos Básicos #\n\n* git --version   =\u003e  mostra a versão do git instalado na máquina;\n* git status  =\u003e  Mostra o status da branch que está logado;\n* git clone \u003clink do github\u003e  =\u003e  Baixa uma cópia do repositório remoto;\n\n\n\n### Branches ###\n\n* git branch  =\u003e  Mostra todos os Branchs(ramificações do código);\n* git branch \u003cnome-da-branch\u003e  =\u003e  cria uma branch local;\n* git branch -d \u003cnome-da-branch\u003e  =\u003e deleta uma branch;\n* git push -u \u003cremote\u003e \u003cnome-da-branch\u003e  =\u003e  upar a nova branch para o repositório;\n* git checkout  \u003cnome-da-branch-destino\u003e  =\u003e  Muda de branch;\n* git checkout -b  \u003cnome-da-nova-branch\u003e  =\u003e  cria e vai para um branch de uma só vez;\n\n\n\n###  Commitar para o repositório remoto ###\n\nprimeiro navegar até a pasta desejada, e digitar no git bash os comandos abaixo:\n\n* git init  =\u003e cria um repositório vazio ou transforma uma pasta em um repositório;\n* git add \u003carquivo\u003e  =\u003e  inclui apenas o arquivo para o próximo commit;\n* git add . ou git add -A  =\u003e  inclui tudo para o próximo commit;\n* git commit -m \"mensagem da alteração no código\"  =\u003e  registro da alteração;\n* git push \u003corigin\u003e \u003cnome-da-branch\u003e  =\u003e  envia e salva as alterações no repositório remoto;\n* git pull \u003cremoto\u003e  =\u003e  obtém atualização do repositório remoto (git fetch + git merge);\n* git revert  'número-da-hash'  =\u003e  desfaz os commits;\n* git log --oneline  =\u003e  mostra o número da hash;\n\n### Para aparecer no github ###\n\ncaso não foi criado um repositório remoto, criar o mesmo para mostrar os commits enviados\n\n* criar repositório no github.\n* clica em repositórios \u003e new \u003e dá um nome e descrição \u003e publico ou privado \u003e criar repositório;\n\n\n\n### Exemplo de envio ###\n\nnavegar até a pasta e digitar no git bash:\n\n* git init\n* git add .\n* git commit -m \"Mensagem\"\n* git push origin master","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandroffdev%2Fgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleandroffdev%2Fgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandroffdev%2Fgithub/lists"}