{"id":144,"date":"2019-12-19T00:25:50","date_gmt":"2019-12-18T23:25:50","guid":{"rendered":"https:\/\/blog.wofuer.com\/?p=144"},"modified":"2020-07-02T19:48:33","modified_gmt":"2020-07-02T17:48:33","slug":"github-accelerator","status":"publish","type":"post","link":"https:\/\/blog.wofuer.com\/?p=144","title":{"rendered":"GitHub accelerator"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Initialising<\/h2>\n\n\n\n<p>Go into your local folder and make it suitable for git.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git init<\/code><\/pre>\n\n\n\n<p>Build a connection between local and remote repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git remote add origin https:\/\/github.com\/wofuerGitHub\/Fundamentals_Overview.git<\/code><\/pre>\n\n\n\n<p>Create a remote git-repository &#8211; easiest to remember &#8211; with the same folder name.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.wofuer.com\/wp-content\/uploads\/2019\/12\/Screen-Shot-2019-12-19-at-00.06.47.png\" alt=\"\" class=\"wp-image-146\" width=\"560\" height=\"425\" srcset=\"https:\/\/blog.wofuer.com\/wp-content\/uploads\/2019\/12\/Screen-Shot-2019-12-19-at-00.06.47.png 1120w, https:\/\/blog.wofuer.com\/wp-content\/uploads\/2019\/12\/Screen-Shot-2019-12-19-at-00.06.47-300x228.png 300w, https:\/\/blog.wofuer.com\/wp-content\/uploads\/2019\/12\/Screen-Shot-2019-12-19-at-00.06.47-768x583.png 768w, https:\/\/blog.wofuer.com\/wp-content\/uploads\/2019\/12\/Screen-Shot-2019-12-19-at-00.06.47-1024x777.png 1024w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure><\/div>\n\n\n\n<p>Add all local files.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git add .<\/code><\/pre>\n\n\n\n<p>Create a first commit called &#8220;init&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git commit -m \"init\"<\/code><\/pre>\n\n\n\n<p>With the first upload define the standard branch.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git push --force --set-upstream origin master<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Information about the repository-status<\/h2>\n\n\n\n<p>Getting all available information about the repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git status<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Push local changes<\/h2>\n\n\n\n<p>To push your local changes to the repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git add .\ngit commit -m \"message\"\ngit push<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Pull remote changes<\/h2>\n\n\n\n<p>To get the newest changes in the repository to your local storage.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git pull<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Clone repository<\/h2>\n\n\n\n<p>To get a complete repository locally installed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/wofuerGitHub\/Fundamentals_Overview.git<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Further information<\/h2>\n\n\n\n<p>Special thanks to <a href=\"https:\/\/rogerdudler.github.io\/git-guide\/index.de.html\">Roger Dudler<\/a> and <a href=\"https:\/\/legacy.thomas-leister.de\/github-fuer-anfaenger-repository-anlegen-und-code-hochladen\/\">Thomas Leister<\/a> for their instructions. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Initialising Go into your local folder and make it suitable for git. Build a connection between local and remote repository. Create a remote git-repository &#8211; easiest to remember &#8211; with the same folder name. Add all local files. Create a first commit called &#8220;init&#8221;. With the first upload define the standard branch. Information about the &#8230; <a title=\"GitHub accelerator\" class=\"read-more\" href=\"https:\/\/blog.wofuer.com\/?p=144\" aria-label=\"Read more about GitHub accelerator\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[9,10],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-software","tag-linux","tag-osx"],"_links":{"self":[{"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144"}],"version-history":[{"count":5,"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wofuer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}