{"id":2801,"date":"2022-12-28T20:32:03","date_gmt":"2022-12-28T14:32:03","guid":{"rendered":"https:\/\/staging.arifbillah.com\/new\/?p=1367"},"modified":"2022-12-28T20:32:03","modified_gmt":"2022-12-28T14:32:03","slug":"how-to-connect-github-to-you-windows-or-linux-computer","status":"publish","type":"post","link":"https:\/\/arifbillah.com\/?p=2801","title":{"rendered":"How to connect github to you windows or linux computer."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>How to install Git on Ubuntu 22.04<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We have summed up for you all steps that will help in the successful installation of git on Ubuntu 22.04.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: Update the system<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing Git make sure your system is up to date. To verify this use the following commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$&nbsp;sudo&nbsp;apt update<br \/><br \/>$&nbsp;sudo&nbsp;apt upgrade&nbsp;-y<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now let\u2019s upgrade the system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: Install git<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now check if Git is already installed on the system or not.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>$&nbsp;<\/em>git&nbsp;&#8211;version<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As indicated in the output the git version is not installed on the system, therefore, now we will install by running the below-given command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>$&nbsp;<\/em>sudo&nbsp;apt&nbsp;install&nbsp;git<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using windows then install git bush software. Also you can continue using windows computer terminal <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3: Verify Installation<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now to verify the successful installation of git use this command once again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>$&nbsp;<\/em>git&nbsp;&#8211;version<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Git has been successfully installed on Ubuntu 22.04.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below we will brief you on how to set up a user account and make an empty repository using Git.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to set up an account and repository<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order to make a user account on Git you have to provide a username and an email and this can be done using the following commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: Provide a username<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the command given below to provide a username<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>$&nbsp;<\/em>git config&nbsp;&#8211;global&nbsp;user.name&nbsp;&#8220;INSERT YOUR NAME&#8221;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: Provide an email address<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The email address is provided using this command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>$&nbsp;<\/em>git config&nbsp;&#8211;global&nbsp;user.email&nbsp;&#8220;INSERT YOUR EMAIL&#8221;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3: Create a repository<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now the account has been set up, we will now generate a repository.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>$&nbsp;<\/em>mkdir&nbsp;sample-directory&nbsp;-p<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The directory has been created with success.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4: Navigate to the directory<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now using the following command navigate to the newly-created directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>$&nbsp;<\/em>cd&nbsp;sample-directory<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5: Initialize Git<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After navigating to the directory, use the initialization command to create a hidden git directory that will store history, configuration, etc<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>$&nbsp;<\/em>git init<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 6: List the content to verify<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">git clone <a href=\"https:\/\/github.com\/arifbillah360\/Glozzom.git\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/arifbillah360\/Glozzom.git<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s also test how to clone any github repository on our computer. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install Git on Ubuntu 22.04 We have summed up for you all steps that will help in the successful installation of git on Ubuntu 22.04. Step 1: Update the system Before installing Git make sure your system is up to date. To verify this use the following commands. $&nbsp;sudo&nbsp;apt update $&nbsp;sudo&nbsp;apt upgrade&nbsp;-y Now [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3142,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119],"tags":[],"class_list":["post-2801","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/posts\/2801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2801"}],"version-history":[{"count":0,"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/posts\/2801\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/media\/3142"}],"wp:attachment":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}