{"id":21,"date":"2019-06-27T22:07:03","date_gmt":"2019-06-27T22:07:03","guid":{"rendered":"https:\/\/feltex.com.br\/blog\/?p=21"},"modified":"2019-07-11T08:58:37","modified_gmt":"2019-07-11T08:58:37","slug":"clonar-um-projeto-do-github","status":"publish","type":"post","link":"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/","title":{"rendered":"Clonar um projeto do Github"},"content":{"rendered":"<h2>Clonar um projeto do Github<\/h2>\n<hr \/>\n<ol>\n<li>\n<p>Abra o programa <strong>gitbash<\/strong> no Windows ou terminal no Linux (Ctrl + Alt + T).<\/p>\n<\/li>\n<li>\n<p>Utilizando a chave p\u00fablica.<\/p>\n<p>Verifique se voc\u00ea tem uma chave p\u00fablica gerada em seu computador usando o comando: <strong>cat    ~\/.ssh\/id_rsa.pub<\/strong> \u00e9 esperada uma saida como a seguinte:<\/p>\n<pre><code>    sh-rsa      AAAAB3NzbC1yc2EAAAADAQABAAABAQCijczVIxZUJNqsyNoBY6o6MYfbIqMnSJf8ZQ93i3ps6MI0dWhmKM\/UkWbYnc99WzhdQj+ijuUiEgZXmiBUSsVLYxk6bLU3tJuwdSzcbMDkKxv00a6l\u00e3oIG6n+NqBvQ5LH2UCjzF7mxw5AR0ns9z3lZSg4RVXZrozI3I9OH7vBMT05fhODO9peOd3EvlrwIIspufJnsM5Y9x03s7xdMeqNBWQsa2cPtsIbfQ5dpcXrBwYLKjDq9masAKDHoe3Kx9MBZINzI8jS6NW5cE6MblM\/dyGCIDEFL4UfWmZ4gfKVh0E5sj7AfbukxYCCwxWjTwwlGH3TKJDF7c878V19WUhjt felix@DESKTOP-QETM9TQ<\/code><\/pre>\n<p>Caso voc\u00ea n\u00e3o tenha uma chave ssh siga os passos abaixo:<\/p>\n<ul>\n<li>Execute o comando: <strong>ssh-keygen<\/strong>. <\/li>\n<li>Para efeito de aprendizado voc\u00ea pode pressionar enter para todas as quest\u00f5es. Para um entendimento mais profundo sobre SSH leia este artigo: <a href=\"https:\/\/www.ssh.com\/ssh\/keygen\/\">https:\/\/www.ssh.com\/ssh\/keygen\/<\/a><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Leia a chave p\u00fablica: <strong>cat ~\/.ssh\/id_rsa.pub<\/strong><\/p>\n<\/li>\n<li>\n<p>Acesse o site do <strong>github<\/strong> <a href=\"https:\/\/github.com\">https:\/\/github.com<\/a>. No canto superior direito clique no bot\u00e3o com a foto do seu avatar. Selecione <strong>Settings<\/strong>. No menu a esquerda selecione <strong>SSH and GPS keys<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Copie o conteudo da sua <em>public key<\/em> lida com o comando <strong>cat ~\/.ssh\/id_rsa.pub<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Clique no bot\u00e3o <strong>New SSH key<\/strong>. Preencha um t\u00edtulo para sua chave. Ex. <strong> Chave do meu laptop<\/strong>. Cole o conte\u00fado da sua chave no campo **<em>Key<\/em><br \/>\nPronto sua chave ssh foi adicionada. Agora voc\u00ea pode clonar o seus projetos.<\/p>\n<\/li>\n<li>\n<p>Volte para o menu principal do *<strong>Github<\/strong>. Voc\u00ea ver\u00e1 a lista de projetos<\/p>\n<\/li>\n<li>\n<p>Selecione o projeto que criamos anteriormente <strong>test_feltex_github<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Selecione o bot\u00e3o <strong>Clone or Download<\/strong>. Copie o conteudo da op\u00e7\u00e3o <strong>Clone with SSH...<\/strong> Algo como:<br \/>\n<strong>git@github.com:andrefelixbr\/test_feltex_github.git<\/strong><\/p>\n<\/li>\n<li>\n<p>No gitbash\/terminal execute o comando <strong>git clone git@gitlab.com:usuario\/test_feltex_github.git<\/strong><\/p>\n<pre><code>    git clone git@gitlab.com:usuario\/test_feltex_github.git\n    Cloning into &#039;test_feltex_github&#039;...\n    remote: Enumerating objects: 3, done.\n    remote: Counting objects: 100% (3\/3), done.\n    remote: Total 3 (delta 0), reused 0 (delta 0)\n    Receiving objects: 100% (3\/3), done.<\/code><\/pre>\n<\/li>\n<li>\n<p>Pronto. Agora voc\u00ea tem o projeto clonado em seu computador e voc\u00ea pode trabalhar com ele.<\/p>\n<\/li>\n<li>\n<p>Acesse a pasta <strong>test_feltex_github<\/strong><\/p>\n<\/li>\n<li>\n<p>Excute o comando <strong>ll<\/strong>. voc\u00ea ver\u00e1 o arquivo README.md<\/p>\n<\/li>\n<li>\n<p>Execute o comando <strong>git status<\/strong><\/p>\n<pre><code>    git status\n    On branch master\n    Your branch is up to date with &#039;origin\/master&#039;.\n    nothing to commit, working tree clean<\/code><\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Clonar um projeto do Github Abra o programa gitbash no Windows ou terminal no Linux (Ctrl + Alt + T). Utilizando a chave p\u00fablica. Verifique se voc\u00ea tem uma chave p\u00fablica gerada em seu computador usando o comando: cat ~\/.ssh\/id_rsa.pub \u00e9 esperada uma saida como a seguinte: sh-rsa AAAAB3NzbC1yc2EAAAADAQABAAABAQCijczVIxZUJNqsyNoBY6o6MYfbIqMnSJf8ZQ93i3ps6MI0dWhmKM\/UkWbYnc99WzhdQj+ijuUiEgZXmiBUSsVLYxk6bLU3tJuwdSzcbMDkKxv00a6l\u00e3oIG6n+NqBvQ5LH2UCjzF7mxw5AR0ns9z3lZSg4RVXZrozI3I9OH7vBMT05fhODO9peOd3EvlrwIIspufJnsM5Y9x03s7xdMeqNBWQsa2cPtsIbfQ5dpcXrBwYLKjDq9masAKDHoe3Kx9MBZINzI8jS6NW5cE6MblM\/dyGCIDEFL4UfWmZ4gfKVh0E5sj7AfbukxYCCwxWjTwwlGH3TKJDF7c878V19WUhjt felix@DESKTOP-QETM9TQ Caso voc\u00ea n\u00e3o tenha uma [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Clonar um projeto do Github - Feltex Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Clonar um projeto do Github - Feltex Blog\" \/>\n<meta property=\"og:description\" content=\"Clonar um projeto do Github Abra o programa gitbash no Windows ou terminal no Linux (Ctrl + Alt + T). Utilizando a chave p\u00fablica. Verifique se voc\u00ea tem uma chave p\u00fablica gerada em seu computador usando o comando: cat ~\/.ssh\/id_rsa.pub \u00e9 esperada uma saida como a seguinte: sh-rsa AAAAB3NzbC1yc2EAAAADAQABAAABAQCijczVIxZUJNqsyNoBY6o6MYfbIqMnSJf8ZQ93i3ps6MI0dWhmKM\/UkWbYnc99WzhdQj+ijuUiEgZXmiBUSsVLYxk6bLU3tJuwdSzcbMDkKxv00a6l\u00e3oIG6n+NqBvQ5LH2UCjzF7mxw5AR0ns9z3lZSg4RVXZrozI3I9OH7vBMT05fhODO9peOd3EvlrwIIspufJnsM5Y9x03s7xdMeqNBWQsa2cPtsIbfQ5dpcXrBwYLKjDq9masAKDHoe3Kx9MBZINzI8jS6NW5cE6MblM\/dyGCIDEFL4UfWmZ4gfKVh0E5sj7AfbukxYCCwxWjTwwlGH3TKJDF7c878V19WUhjt felix@DESKTOP-QETM9TQ Caso voc\u00ea n\u00e3o tenha uma [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/\" \/>\n<meta property=\"og:site_name\" content=\"Feltex Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/feltex.br\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-27T22:07:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-11T08:58:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"felix\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/feltex.com.br\/blog\/#website\",\"url\":\"https:\/\/feltex.com.br\/blog\/\",\"name\":\"Feltex Blog\",\"description\":\"Blog de programa\\u00e7\\u00e3o\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/feltex.com.br\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/#webpage\",\"url\":\"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/\",\"name\":\"Clonar um projeto do Github - Feltex Blog\",\"isPartOf\":{\"@id\":\"https:\/\/feltex.com.br\/blog\/#website\"},\"datePublished\":\"2019-06-27T22:07:03+00:00\",\"dateModified\":\"2019-07-11T08:58:37+00:00\",\"author\":{\"@id\":\"https:\/\/feltex.com.br\/blog\/#\/schema\/person\/bf7e3f4c18597d96c6f2909bb964ae1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/feltex.com.br\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Clonar um projeto do Github\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/feltex.com.br\/blog\/#\/schema\/person\/bf7e3f4c18597d96c6f2909bb964ae1f\",\"name\":\"felix\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/feltex.com.br\/blog\/#personlogo\",\"inLanguage\":\"en-GB\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/81629b086b2584cd1a4f74bff2de918c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/81629b086b2584cd1a4f74bff2de918c?s=96&d=mm&r=g\",\"caption\":\"felix\"},\"url\":\"https:\/\/feltex.com.br\/blog\/author\/andrefelix\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Clonar um projeto do Github - Feltex Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/","og_locale":"en_GB","og_type":"article","og_title":"Clonar um projeto do Github - Feltex Blog","og_description":"Clonar um projeto do Github Abra o programa gitbash no Windows ou terminal no Linux (Ctrl + Alt + T). Utilizando a chave p\u00fablica. Verifique se voc\u00ea tem uma chave p\u00fablica gerada em seu computador usando o comando: cat ~\/.ssh\/id_rsa.pub \u00e9 esperada uma saida como a seguinte: sh-rsa AAAAB3NzbC1yc2EAAAADAQABAAABAQCijczVIxZUJNqsyNoBY6o6MYfbIqMnSJf8ZQ93i3ps6MI0dWhmKM\/UkWbYnc99WzhdQj+ijuUiEgZXmiBUSsVLYxk6bLU3tJuwdSzcbMDkKxv00a6l\u00e3oIG6n+NqBvQ5LH2UCjzF7mxw5AR0ns9z3lZSg4RVXZrozI3I9OH7vBMT05fhODO9peOd3EvlrwIIspufJnsM5Y9x03s7xdMeqNBWQsa2cPtsIbfQ5dpcXrBwYLKjDq9masAKDHoe3Kx9MBZINzI8jS6NW5cE6MblM\/dyGCIDEFL4UfWmZ4gfKVh0E5sj7AfbukxYCCwxWjTwwlGH3TKJDF7c878V19WUhjt felix@DESKTOP-QETM9TQ Caso voc\u00ea n\u00e3o tenha uma [&hellip;]","og_url":"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/","og_site_name":"Feltex Blog","article_publisher":"https:\/\/www.facebook.com\/feltex.br","article_published_time":"2019-06-27T22:07:03+00:00","article_modified_time":"2019-07-11T08:58:37+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"felix","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/feltex.com.br\/blog\/#website","url":"https:\/\/feltex.com.br\/blog\/","name":"Feltex Blog","description":"Blog de programa\u00e7\u00e3o","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/feltex.com.br\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/#webpage","url":"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/","name":"Clonar um projeto do Github - Feltex Blog","isPartOf":{"@id":"https:\/\/feltex.com.br\/blog\/#website"},"datePublished":"2019-06-27T22:07:03+00:00","dateModified":"2019-07-11T08:58:37+00:00","author":{"@id":"https:\/\/feltex.com.br\/blog\/#\/schema\/person\/bf7e3f4c18597d96c6f2909bb964ae1f"},"breadcrumb":{"@id":"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/feltex.com.br\/blog\/clonar-um-projeto-do-github\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/feltex.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Clonar um projeto do Github"}]},{"@type":"Person","@id":"https:\/\/feltex.com.br\/blog\/#\/schema\/person\/bf7e3f4c18597d96c6f2909bb964ae1f","name":"felix","image":{"@type":"ImageObject","@id":"https:\/\/feltex.com.br\/blog\/#personlogo","inLanguage":"en-GB","url":"https:\/\/secure.gravatar.com\/avatar\/81629b086b2584cd1a4f74bff2de918c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/81629b086b2584cd1a4f74bff2de918c?s=96&d=mm&r=g","caption":"felix"},"url":"https:\/\/feltex.com.br\/blog\/author\/andrefelix\/"}]}},"_links":{"self":[{"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feltex.com.br\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}