{"id":378,"date":"2014-03-27T18:17:17","date_gmt":"2014-03-27T17:17:17","guid":{"rendered":"http:\/\/www.graverini.net\/elena\/?page_id=378"},"modified":"2014-03-27T18:24:32","modified_gmt":"2014-03-27T17:24:32","slug":"setup-github-repository","status":"publish","type":"page","link":"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/","title":{"rendered":"Setup a github repository"},"content":{"rendered":"<p><code>git init<\/code><br \/>\n<code>git add mycode.my<\/code><br \/>\n<code>git commit -m \"First commit\"<\/code><br \/>\n<code>git remote add reponame git@github.com:username\/reponame.git<\/code><br \/>\nIf it is the first repository you set up with that username, generate a SSH key:<br \/>\n<code>ssh-keygen -t rsa -C \"your_email@example.com\"<\/code><br \/>\n<code>ssh-add ~\/.ssh\/id_rsa<\/code><br \/>\nCopy the content of ~\/.ssh\/id_rsa.pub and paste it into <a href=\"https:\/\/github.com\/settings\/ssh\" title=\"Account Settings &#038;#62 SSH Keys &#038;#62 Add SSH Key\" target=\"_blank\">Account Settings &#038;#62 SSH Keys &#038;#62 Add SSH Key<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git init git add mycode.my git commit -m &#8220;First commit&#8221; git remote add reponame git@github.com:username\/reponame.git If it is the first repository you set up with that username, generate a SSH key: ssh-keygen -t rsa -C &#8220;your_email@example.com&#8221; ssh-add ~\/.ssh\/id_rsa Copy the&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":97,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setup a github repository - Elena Graverini<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup a github repository - Elena Graverini\" \/>\n<meta property=\"og:description\" content=\"git init git add mycode.my git commit -m &quot;First commit&quot; git remote add reponame git@github.com:username\/reponame.git If it is the first repository you set up with that username, generate a SSH key: ssh-keygen -t rsa -C &quot;your_email@example.com&quot; ssh-add ~\/.ssh\/id_rsa Copy the&hellip;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/\" \/>\n<meta property=\"og:site_name\" content=\"Elena Graverini\" \/>\n<meta property=\"article:modified_time\" content=\"2014-03-27T17:24:32+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.graverini.net\/elena\/wp-content\/uploads\/2013\/12\/Penguins.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/\",\"url\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/\",\"name\":\"Setup a github repository - Elena Graverini\",\"isPartOf\":{\"@id\":\"https:\/\/www.graverini.net\/elena\/#website\"},\"datePublished\":\"2014-03-27T17:17:17+00:00\",\"dateModified\":\"2014-03-27T17:24:32+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.graverini.net\/elena\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Computing\",\"item\":\"http:\/\/www.graverini.net\/elena\/computing\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Ubuntu\/Mint\",\"item\":\"http:\/\/www.graverini.net\/elena\/computing\/linux\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Setup a github repository\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.graverini.net\/elena\/#website\",\"url\":\"https:\/\/www.graverini.net\/elena\/\",\"name\":\"Elena Graverini\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.graverini.net\/elena\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setup a github repository - Elena Graverini","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":"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/","og_locale":"en_GB","og_type":"article","og_title":"Setup a github repository - Elena Graverini","og_description":"git init git add mycode.my git commit -m \"First commit\" git remote add reponame git@github.com:username\/reponame.git If it is the first repository you set up with that username, generate a SSH key: ssh-keygen -t rsa -C \"your_email@example.com\" ssh-add ~\/.ssh\/id_rsa Copy the&hellip;","og_url":"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/","og_site_name":"Elena Graverini","article_modified_time":"2014-03-27T17:24:32+00:00","og_image":[{"width":1024,"height":768,"url":"http:\/\/www.graverini.net\/elena\/wp-content\/uploads\/2013\/12\/Penguins.jpg","type":"image\/jpeg"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/","url":"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/","name":"Setup a github repository - Elena Graverini","isPartOf":{"@id":"https:\/\/www.graverini.net\/elena\/#website"},"datePublished":"2014-03-27T17:17:17+00:00","dateModified":"2014-03-27T17:24:32+00:00","breadcrumb":{"@id":"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.graverini.net\/elena\/computing\/linux\/setup-github-repository\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.graverini.net\/elena\/"},{"@type":"ListItem","position":2,"name":"Computing","item":"http:\/\/www.graverini.net\/elena\/computing\/"},{"@type":"ListItem","position":3,"name":"Linux Ubuntu\/Mint","item":"http:\/\/www.graverini.net\/elena\/computing\/linux\/"},{"@type":"ListItem","position":4,"name":"Setup a github repository"}]},{"@type":"WebSite","@id":"https:\/\/www.graverini.net\/elena\/#website","url":"https:\/\/www.graverini.net\/elena\/","name":"Elena Graverini","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.graverini.net\/elena\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/378"}],"collection":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":5,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/378\/revisions"}],"predecessor-version":[{"id":383,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/378\/revisions\/383"}],"up":[{"embeddable":true,"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/pages\/97"}],"wp:attachment":[{"href":"http:\/\/www.graverini.net\/elena\/wp-json\/wp\/v2\/media?parent=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}