{"id":162,"date":"2021-04-08T11:45:33","date_gmt":"2021-04-08T09:45:33","guid":{"rendered":"https:\/\/www.eversys.cz\/?p=162"},"modified":"2021-04-08T11:45:34","modified_gmt":"2021-04-08T09:45:34","slug":"github-bez-hesla","status":"publish","type":"post","link":"https:\/\/www.eversys.cz\/index.php\/2021\/04\/08\/github-bez-hesla\/","title":{"rendered":"GITHUB bez hesla"},"content":{"rendered":"\n<p>Create a new repository, or reuse an existing one.<\/p>\n\n\n\n<p>Generate a new SSH key:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen -t rsa -C \"your_email@example.com\"\n<\/code><\/pre>\n\n\n\n<p>Copy the contents of the file <code>~\/.ssh\/id_rsa.pub<\/code> to your SSH keys in your GitHub account settings (<a href=\"https:\/\/github.com\/settings\/keys\">https:\/\/github.com\/settings\/keys<\/a>).<\/p>\n\n\n\n<p>Test SSH key:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ssh -T git@github.com\nHi developius! You've successfully authenticated, but GitHub does not provide shell access.\n<\/code><\/pre>\n\n\n\n<p>Change directory into the local clone of your repository (if you&#8217;re not already there) and run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git remote set-url origin git@github.com:username\/your-repository.git\n<\/code><\/pre>\n\n\n\n<p>Now try editing a file (try the README) and then do:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ git commit -am \"Update README.md\"\n$ git push\n<\/code><\/pre>\n\n\n\n<p>You should not be asked for a username or password. If it works, your SSH key is correctly configured.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a new repository, or reuse an existing one. Generate a new SSH key: Copy the contents of the file ~\/.ssh\/id_rsa.pub to your SSH keys in your GitHub account settings (https:\/\/github.com\/settings\/keys). Test SSH key: Change directory into the local clone of your repository (if you&#8217;re not already there) and run: Now try editing a file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":0,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eversys.cz\/index.php\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}