{"id":250,"date":"2025-02-22T00:40:46","date_gmt":"2025-02-21T19:40:46","guid":{"rendered":"https:\/\/langtoday.site\/?p=250"},"modified":"2025-02-28T17:42:59","modified_gmt":"2025-02-28T12:42:59","slug":"how-to-quickly-set-up-your-new-github-project","status":"publish","type":"post","link":"https:\/\/langtoday.site\/?p=250","title":{"rendered":"How to quickly set up your new Github project"},"content":{"rendered":"\n<p>If you want to set up your new pet or study project from scratch in 2025, you might want to use <a href=\" https:\/\/github.com\">https:\/\/github.com<\/a> for version control and Docker for running a dev environment to get a smooth and quick start. Let&#8217;s start with a git repository. Here is a step by step instruction.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go get a <a href=\"https:github.com\">gihub.com<\/a> account<\/li>\n\n\n\n<li>Start a new repository there. Let&#8217;s assume you called it <code><em>api<\/em><\/code><\/li>\n\n\n\n<li>Providing you have git installed already on your computer and having some folder structure and  code for your project you first run <code>git init <\/code> in the root folder of your project.<\/li>\n\n\n\n<li>You can add files to stage by <code>git add . <\/code>, commit them with <code>git commit -m \"description\" <\/code> however your repository will stay local yet.<\/li>\n\n\n\n<li>We need to set up an ssh access to your repository. Let&#8217;s create an ssh key first: <code>ssh-keygen -t ed25519 -C \"mail@gmail.com\"<\/code> then pick any name for the key. There will be two: a private one and a public one (with the extension <em>.pub<\/em>). By default the keys will be stored in the subfolder <em>.ssh<\/em> of your home folder. Let&#8217;s assume you named your key <em>my_key<\/em><\/li>\n\n\n\n<li> Copy the contents of the newly added pub key to the clipboard. On MacOS you can do it with <code>pbcopy &lt; ~\/.ssh\/my_key.pub<\/code><\/li>\n\n\n\n<li>Go to the settings of your ssh access on github repository settings page and copy paste the pub key there.<\/li>\n\n\n\n<li>Add the newly added key to your system <code>ssh-add -K ~\/.ssh\/my_key<\/code><\/li>\n\n\n\n<li>Find and edit your ssh config, usually it&#8217;s located in <em>~\/.ssh\/config<\/em><\/li>\n\n\n\n<li>Add your new key there:<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Host github.GITHUB_REPOSITORY_NAME\n  HostName github.com\n  AddKeysToAgent yes\n  UseKeychain yes\n  IdentityFile ~\/.ssh\/my_key\n<\/pre>\n\n\n\n<p>11. Done with ssh, let&#8217;s set up the repository itself. Let&#8217;s assume your main branch is called <em>main<\/em> rather than <em>master<\/em> (considered more politically correct now). Add origin <code>git remote add origin git@github.GITHUB_REPOSITORY_NAME:GITHUB_REPOSITORY_USERNAME\/api.git <\/code> here <em>api.git<\/em> is the name of your git repository<\/p>\n\n\n\n<p>12. Set URL: <code>git remote set-url origin git@github.<code>GITHUB_REPOSITORY_NAME:GITHUB_REPOSITORY_USERNAME<\/code>\/api.git<\/code> Pay attention to <code><code>GITHUB_REPOSITORY_NAME<\/code><\/code> &#8211; this is important to set it up if you want to work with more than one Git repositories on the same computer, and you want them to use separate keys to access each of them.<\/p>\n\n\n\n<p>13. Check your links to the remote repository: <code>git remote -v<\/code><\/p>\n\n\n\n<p>14. Try to push your code to this remote repository: <code>git push -u origin main<\/code><\/p>\n\n\n\n<p>Enjoy your work!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to set up your new pet or study project from scratch in 2025, you might want to use https:\/\/github.com for version control and Docker for running a dev environment to get a smooth and quick start. Let&#8217;s start with a git repository. Here is a step by step instruction. 11. Done with&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[14],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-programming","tag-git"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":267,"url":"https:\/\/langtoday.site\/?p=267","url_meta":{"origin":250,"position":0},"title":"A Software Developer Role in the Age of AI","author":"pyastolov@gmail.com","date":"November 21, 2025","format":false,"excerpt":"Some time has passed since I wrote an article on my thoughts about AI in the everyday work of a programmer. I have new thoughts about where we are all going to and what the old\/new role of a software engineer is becoming to be. What Has Improved Since last\u2026","rel":"","context":"In &quot;Life&quot;","block_context":{"text":"Life","link":"https:\/\/langtoday.site\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1,"url":"https:\/\/langtoday.site\/?p=1","url_meta":{"origin":250,"position":1},"title":"I am starting my new blog!","author":"pyastolov@gmail.com","date":"January 17, 2023","format":false,"excerpt":"English is not my native language. I am not a writer. I'm not even a blogger. Though, I speak some English. I've traveled to several countries and lots of locations, and I like to take photos. I have a kid. Programming is my profession. My hobbies include intellectual games like\u2026","rel":"","context":"In &quot;Life&quot;","block_context":{"text":"Life","link":"https:\/\/langtoday.site\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":241,"url":"https:\/\/langtoday.site\/?p=241","url_meta":{"origin":250,"position":2},"title":"Thoughts about AI in Software Development","author":"pyastolov@gmail.com","date":"February 5, 2024","format":false,"excerpt":"Having spent several months with JetBrains AI Assistant and GitHub Copilot I have several observations on the current state of things. Following Noam Chomsky mood I wouldn't call it AI because it has not reached that level of technology yet but still if we have this term used a lot\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/langtoday.site\/?cat=10"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2024\/02\/image.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2024\/02\/image.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2024\/02\/image.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2024\/02\/image.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2024\/02\/image.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":455,"url":"https:\/\/langtoday.site\/?p=455","url_meta":{"origin":250,"position":3},"title":"Trabzon (Turkey) and Surroundings","author":"pyastolov@gmail.com","date":"January 12, 2026","format":false,"excerpt":"Northeastern Turkey Tea factory chimney is visible The territory of Northeastern Turkey has a rich historical background. This was a land of the Laz (one of the Georgian peoples) settled by Greeks and others, a part of the Persian Achaemenid Empire, a part of the Kingdom of Pontus, of the\u2026","rel":"","context":"In &quot;Travelog&quot;","block_context":{"text":"Travelog","link":"https:\/\/langtoday.site\/?cat=9"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250727_183755-scaled.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250727_183755-scaled.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250727_183755-scaled.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250727_183755-scaled.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250727_183755-scaled.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250727_183755-scaled.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":391,"url":"https:\/\/langtoday.site\/?p=391","url_meta":{"origin":250,"position":4},"title":"Batumi, Adjara","author":"pyastolov@gmail.com","date":"January 1, 2026","format":false,"excerpt":"Batumi is the capital of the most southern-western region of Georgia bordering Turkey. Its unique climate makes it a great wine and tea production center, and thanks to being located on the sea, it\u2019s a natural harbor, a subtropical resort, and a trading center. Economy and a Little History In\u2026","rel":"","context":"In &quot;Travelog&quot;","block_context":{"text":"Travelog","link":"https:\/\/langtoday.site\/?cat=9"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250708_215708-scaled.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250708_215708-scaled.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250708_215708-scaled.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250708_215708-scaled.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250708_215708-scaled.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/langtoday.site\/wp-content\/uploads\/2026\/01\/IMG_20250708_215708-scaled.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/langtoday.site\/index.php?rest_route=\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/langtoday.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/langtoday.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/langtoday.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/langtoday.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=250"}],"version-history":[{"count":2,"href":"https:\/\/langtoday.site\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/langtoday.site\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions\/253"}],"wp:attachment":[{"href":"https:\/\/langtoday.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/langtoday.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/langtoday.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}