{"id":25549753,"url":"https://github.com/matheusadc/curso-github","last_synced_at":"2026-02-17T18:04:24.658Z","repository":{"id":276894126,"uuid":"930654842","full_name":"MatheusADC/Curso-Github","owner":"MatheusADC","description":"Tutorial de como usar o Github.","archived":false,"fork":false,"pushed_at":"2025-02-21T18:46:22.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T22:35:05.412Z","etag":null,"topics":["github","github-actions"],"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/MatheusADC.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-11T01:38:56.000Z","updated_at":"2025-02-21T18:46:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"4644b1ef-e04e-4a67-abe4-853be236d210","html_url":"https://github.com/MatheusADC/Curso-Github","commit_stats":null,"previous_names":["matheusadc/curso-github"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MatheusADC/Curso-Github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2FCurso-Github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2FCurso-Github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2FCurso-Github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2FCurso-Github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatheusADC","download_url":"https://codeload.github.com/MatheusADC/Curso-Github/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatheusADC%2FCurso-Github/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29552257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T17:56:56.811Z","status":"ssl_error","status_checked_at":"2026-02-17T17:56:55.544Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["github","github-actions"],"created_at":"2025-02-20T10:19:50.703Z","updated_at":"2026-02-17T18:04:24.653Z","avatar_url":"https://github.com/MatheusADC.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://github.com/user-attachments/assets/0d980e6c-97de-4add-98c3-7197095c5080\" alt=\"Ícone do Github\" width=\"28px\"/\u003e Git e Github\n- O Git é um Sistema de Versionamento;\n- O GitHub é uma das plataformas de versionamento mais utilizadas;\n- [Site](https://github.com/)\n- [Meu Github](https://github.com/MatheusADC)\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/6b2d218f-a095-4e4f-ab4a-586cf55c83e6\" alt=\"Ícone de aprovação\" width=\"28px\"/\u003e Vantagens\n- Controle das versões do código;\n- Trabalho colaborativo.\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/5c05dd2d-e256-4439-8bf1-f04e7ca0e9c7\" alt=\"Ícone do Git\" width=\"28px\"/\u003e Instalação do Git\n- [Site](https://git-scm.com/)\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/4c8b7f6e-06df-4945-bfcc-bdd5c84864b0\" alt=\"Ícone de verificação\" width=\"28px\"/\u003e Verificação do _status_ da instalação\n```\ngit --help ou git --version\n```\n\n# \u003csub\u003e\u003cimg src=\"https://github.com/user-attachments/assets/63b6ebba-d37d-4a91-ad27-0738c4896197\" alt=\"Ícone do terminal\" width=\"35\"\u003e\u003c/sub\u003e Comandos\n### Inicialização do repositório\n```\ngit init\n```\n\n### Verificação do status do repositório\n```\ngit status\n```\n\n\u003cp\u003e\u003c/p\u003e\n\n\u003e [!IMPORTANT]  \n\u003e Um _Commit_ é uma operação que registra as modificações feitas em um repositório de versionamento.\n\u003e \n\u003e Arquivos marcados como _untracked_ não foram adicionados ao controle de versão.\n\n\u003cbr/\u003e\n\n### Adição do arquivo ao controle de versão\n```\ngit add \u003cnome_arquivo.extensao\u003e\n```\n\n### Adição dos arquivos de forma concomitante (alteração do status do arquivo de _untracked_ para _modified_)\n```\ngit add .\n```\n\n### Realização de um _commit_\n```\ngit commit -m \u003cmensagem\u003e\n```\n\n### Configuração do usuário do GitHub localmente\n```\ngit config --global user.name \u003cusername\u003e\ngit config --global user.email \"\u003ce-mail\u003e\n```\n\n### Envio do código para o _cloud server_ \n```\ngit push --set-upstream origin \u003cnome_branch\u003e\n```\n\n### Adição local da _branch_ remota\n```\ngit remote add origin \u003cURL_Projeto\u003e\n```\n\n### Verificação do histórico das versões\n```\ngit reflog\n```\n\n\u003cp\u003e\u003c/p\u003e\n\n\u003e [!CAUTION]\n\u003e A versão mais atual é a que está localizada no topo do texto de retorno.\n\n\u003cbr/\u003e\n\n### Retorno da versão\n```\ngit reset --hard \u003cID_commit\u003e\n```\n\n### Verificação das _branches_ disponíveis localmente\n```\ngit branch\n```\n\n### Criação da _branch_ local\n```\ngit branch \u003cnome_branch\u003e\n```\n\n### Exclusão da _branch_\n```\ngit checkout \u003cnome_branch_de_destino\u003e\n```\n\n### Exclusão da  _branch_ localmente\n```\ngit branch -D \u003cnome_branch\u003e\n````\n\n### Atualização da _branch_ local\n```\ngit pull \u003cnome_branch\u003e\n```\n\n### Criação de uma _branch_ a partir de outra _branch_\n```\ngit checkout -b \u003cnome_branch_criada\u003e \u003cnome_branch_modelo\u003e\n```\n\n### Criação do arquivo .gitignore\n```\ntouch .gitignore\n```\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/1c0af4ea-f9be-431c-a40a-5c8992e95f92\" alt=\"ícone de merge\" width=\"28px\"/\u003e União do código\n### 1. Entre na branch que receberá o _merge_\n### 2. Execute o comando `git pull`\n### 3. Execute o comando `git merge \u003cnome_branch_principal\u003e`\n### 4. Execute o comando `git push`\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/976f38b1-e242-4943-985c-0fd45f59df28\" alt=\"ícone de barnches\" width=\"28px\"/\u003e _Branches_\nSão ramificações distintas que podem são criadas ao longo do processo de desenvolvimento.\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/b5a735cd-9d37-4773-adc4-583b76a65dc4\" alt=\"ícone de pull request\" width=\"28px\"/\u003e _Pull request_ \nÉ a solicitação da aprovação de um _commit_.\n\n# \u003cimg src=\"https://github.com/user-attachments/assets/6dff2470-e8c7-4ec5-8ba1-c7ddf6042cab\" alt=\"ícone de git ignore\" width=\"28px\"/\u003e _Gitignore_\nA sua função é evitar o envio de determinados arquivos ou pastas para o repositório.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusadc%2Fcurso-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheusadc%2Fcurso-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusadc%2Fcurso-github/lists"}