{"id":485,"date":"2019-10-30T11:11:29","date_gmt":"2019-10-30T14:11:29","guid":{"rendered":"https:\/\/www.gnial.com.br\/gnialhelp\/?p=485"},"modified":"2019-11-09T16:23:52","modified_gmt":"2019-11-09T19:23:52","slug":"git-and-github","status":"publish","type":"post","link":"http:\/\/www.gnial.com.br\/gnialhelp\/git-and-github\/","title":{"rendered":"Git and GitHub &#8211; Download"},"content":{"rendered":"<h3>Download and Install<\/h3>\r\n<p>Acesse e fa\u00e7a o download:<\/p>\r\n\r\n<p><a href=\"http:\/\/www.git-scm.com\/download\">www.git-scm.com\/download<\/a><\/p>\r\n\r\n\r\n\r\n<h3>Configure o usu\u00e1rio e e-mail<\/h3>\r\n<p>Depois da instalar \u00e9 preciso abrir o console de comando git<\/p>\r\n\r\n\r\n\r\n<blockquote>\r\n<p><span style=\"color: #ff6600;\"><strong>$ git config &#8211;global user.email &#8220;<\/strong>seuemail@dominio.com&#8221;<strong><br \/>$ git config &#8211;global user.name &#8220;<\/strong>gitusername<strong>&#8220;<\/strong><\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<h3>Gerando a chave (key)<\/h3>\r\n<p>Abra o console, coloque o e-mail do github.com no exemplo abaixo e gere a chave:<\/p>\r\n\r\n\r\n\r\n<blockquote>\r\n<p><strong><span style=\"color: #ff6600;\"> $ ssh-keygen -t rsa -b 4096 -C &#8220;seu_email@dominio.com&#8221;<\/span> [enter]<\/strong><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p>Enter para gerar o arquivo chave<br \/>Depois insira a senha do seu github<\/p>\r\n\r\n\r\n\r\n<blockquote>\r\n<p><strong><span style=\"color: #ff6600;\">$ ssh-agent -s<\/span> [enter] <\/strong><br \/><strong><span style=\"color: #ff6600;\">$ exec ssh-agent<\/span> bash [enter]<\/strong><br \/><strong><span style=\"color: #ff6600;\">$ eval ssh-agent -s<\/span> [enter]<\/strong><br \/><strong><span style=\"color: #ff6600;\">$ eval $(ssh-agent -s)<\/span> [enter] <\/strong>(semelhante \u00e0 linha acima)<br \/><strong><span style=\"color: #ff6600;\">$ ssh-add ~\/.ssh\/id_rsa<\/span> [enter]<\/strong><br \/><strong><span style=\"color: #ff6600;\">$ clip &lt; ~\/.ssh\/id_rsa.pub<\/span> [enter]<\/strong><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p>A chave agora est\u00e1 no nosso <strong>Ctrl+V<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Agora, e finalmente, entre no webiste <strong>GitHub &gt; Settings &gt; SSH Keys &gt; add SSH Keys<\/strong><\/p>\r\n<p>Cole com <strong>Ctrl+C<\/strong> a chave\u00a0<\/p>\r\n\r\n\r\n\r\n<h3>Sistema UNIX (talvez no windows)<\/h3>\r\n<p>Salvar usu\u00e1rio po 8h<\/p>\r\n\r\n\r\n\r\n<blockquote>\r\n<p><span style=\"color: #ff6600;\"><strong>$ git config &#8211;global credential.helper &#8216;cache &#8211;timeout=28800&#8217;<\/strong><\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p>Salvar usu\u00e1rio permanentemente<\/p>\r\n\r\n\r\n\r\n<blockquote>\r\n<p><span style=\"color: #ff6600;\"><strong>$ git config &#8211;global credential.helper cache<\/strong><\/span><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<h3>Trabalhando com Git<\/h3>\r\n<p><a href=\"https:\/\/www.gnial.com.br\/gnialhelp\/git-and-github-basic-functions\/\">Artigo com as fun\u00e7\u00f5es b\u00e1sicas do git.<\/a><\/p>\r\n<hr \/>\r\n\r\n\r\n<p>fontes:<br \/><a href=\"https:\/\/help.github.com\/pt\/github\/authenticating-to-github\/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent\">https:\/\/help.github.com\/pt\/github\/authenticating-to-github\/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent<\/a><br \/><a href=\"http:\/\/gabsferreira.com\/instalando-o-git-e-configurando-github\/\">http:\/\/gabsferreira.com\/instalando-o-git-e-configurando-github\/<\/a><br \/><a href=\"https:\/\/help.github.com\/pt\/github\/authenticating-to-github\/adding-a-new-ssh-key-to-your-github-account\">https:\/\/help.github.com\/pt\/github\/authenticating-to-github\/adding-a-new-ssh-key-to-your-github-account<\/a><\/p>\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>Download and Install Acesse e fa\u00e7a o download: www.git-scm.com\/download Configure o usu\u00e1rio e e-mail Depois da instalar \u00e9 preciso abrir o console de comando git $ git config &#8211;global user.email &#8220;seuemail@dominio.com&#8221;$ git config &#8211;global user.name &#8220;gitusername&#8220; Gerando a chave (key) Abra o console, coloque o e-mail do github.com no exemplo abaixo e gere a chave: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-485","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","has-thumbnail"],"_links":{"self":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":9,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"predecessor-version":[{"id":529,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/posts\/485\/revisions\/529"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/media\/527"}],"wp:attachment":[{"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gnial.com.br\/gnialhelp\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}