{"id":552,"date":"2022-09-05T11:18:06","date_gmt":"2022-09-05T11:18:06","guid":{"rendered":"https:\/\/www.niraltek.com\/?p=552"},"modified":"2022-11-08T09:39:08","modified_gmt":"2022-11-08T09:39:08","slug":"a-beginners-introduction-to-github","status":"publish","type":"post","link":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/","title":{"rendered":"A Beginner&#8217;s Introduction to GitHub"},"content":{"rendered":"<p>GitHub is a cloud-based service website in which the developers can store, manage, track and control changes to their code. There are two connected principles.<br \/>\n*Version control<br \/>\n*Git<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/Octicons-mark-github-300x300.png\" alt=\"github logo\" width=\"300\" height=\"300\" \/><\/p>\n<h5><strong>What is version control?<\/strong><\/h5>\n<p>Version control is also called as source control, which is used for tracking and managing changes to software code. Version control systems are software tool in which developers are able to manage changes to source code.<br \/>\nThere are two main processes in version control<br \/>\n*Branching.<br \/>\n*Merge.<br \/>\nBranching is a process in which part of the code gets duplicated which is called repository for the purpose of development.<br \/>\nAfter the process of developing the Code if the developer finds that the part of the code is working properly, he\/she can merge the code to the main source code.<\/p>\n<h5><strong>What is Git?<\/strong><\/h5>\n<p>Git is a free and open-source version control system which is designed for the purpose to handle everything from small to very large projects with speed and efficiency.<\/p>\n<h5><strong>Creating a new repository:<\/strong><\/h5>\n<p>1.In the upper-right corner of the page, click the + drop-down menu, and select new repository.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/2.png\" alt=\"github repository\" width=\"192\" height=\"201\" \/><\/p>\n<p>2.Type a short, memorable name for your repository, like the one which is shown below.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/3-1.png\" alt=\"\" width=\"533\" height=\"215\" \/><\/p>\n<p>3.Choose a repository visibility:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/4.png\" alt=\"GitHub\" width=\"539\" height=\"217\" \/><\/p>\n<blockquote><p><strong>NOTE:<\/strong> Repository which is created here is an empty repository. If you want you can also initialize it with a README file.<\/p><\/blockquote>\n<p>4.Click create repository:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/5-1024x339.png\" alt=\"github procedure \" width=\"537\" height=\"178\" \/><\/p>\n<p>You have successfully created your first repository.<\/p>\n<h5><strong>GITHUB COMMANDS:<\/strong><\/h5>\n<h5><strong>GIT CLONE:<\/strong><\/h5>\n<p>Once the repository is created successfully it will guide you to a new page, which will show you the URL.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/6-1024x640.png\" alt=\"github\" width=\"614\" height=\"384\" \/><\/p>\n<p>Just copy the URL and paste it like this (git clone &lt;URL&gt;) in your Windows PowerShell, make sure that git is installed in your device.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/7-1024x576.png\" alt=\"github comment\" width=\"635\" height=\"357\" \/><\/p>\n<p>Git clone command is mainly used for downloading source code from a remote repository to local repository.<\/p>\n<p>The coding editor used here is visual studio code, to include the project file just give the command (code.), which will guide you to the visual studio code editor. Create your project in the code editor, after creating your file make sure that the file has been included<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/8-1024x576.png\" alt=\"github comment\" width=\"656\" height=\"369\" \/><\/p>\n<h5><strong>GIT ADD:<\/strong><\/h5>\n<p>Git add command tells Git that you want to include updates to a particular file, when we create, modify or delete a file these changes will happen in our local. To use this command just include file name along with the Git add command (git add&lt;file name&gt;). In conjunction with these commands, you will also need Git status which will provide all the necessary information about the current branch.<\/p>\n<p>However, Git add command will not really affect the repository until you run Git command.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/9-1024x576.png\" alt=\"github comment\" width=\"681\" height=\"383\" \/><\/p>\n<h5><strong>GIT COMMIT:<\/strong><\/h5>\n<p>If the developing process reaches a certain point in development, the changes have to be saved.<\/p>\n<p>Git commit is like setting an endpoint in the development process which can be used for later purpose. A short message can be written along with the command (git command -m \u201cshort message\u201d) to mention the changes that we have made while developing the code.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/10-1024x576.png\" alt=\"github comment\" width=\"640\" height=\"360\" \/><\/p>\n<h5><strong>GIT PUSH:<\/strong><\/h5>\n<p>After committing the changes, the next process is to push local repository content to remote repository. The Git push command is used to upload local repository content to a remote repository.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/11-1024x576.png\" alt=\"github comment\" width=\"650\" height=\"365\" \/><\/p>\n<p>After the process of transferring the project file from your local repository to a remote repository by git push command just refresh the GitHub page and you will find your project file.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/12-1024x576.png\" alt=\"github\" width=\"606\" height=\"341\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub is a cloud-based service website in which the developers can store, manage, track and control changes to their code. There are two connected principles. *Version control *Git What is version control? Version control is also called as source control, which is used for tracking and managing changes to software code. Version control systems are [&hellip;]<\/p>\n <a href=\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/\" class=\"ReadMore\" title=\"Read More\">Read More<\/a>","protected":false},"author":4,"featured_media":570,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.5.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A Beginner&#039;s Introduction to GitHub - Niraltek Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Beginner&#039;s Introduction to GitHub - Niraltek Blog\" \/>\n<meta property=\"og:description\" content=\"GitHub is a cloud-based service website in which the developers can store, manage, track and control changes to their code. There are two connected principles. *Version control *Git What is version control? Version control is also called as source control, which is used for tracking and managing changes to software code. Version control systems are [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/\" \/>\n<meta property=\"og:site_name\" content=\"Niraltek Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-05T11:18:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-08T09:39:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/github-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"402\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benitta Arogana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\",\"url\":\"https:\/\/www.niraltek.com\/blog\/\",\"name\":\"Niraltek Blog\",\"description\":\"Niraltek, IOT, BLOGS\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/github-01.jpg\",\"contentUrl\":\"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/github-01.jpg\",\"width\":802,\"height\":402,\"caption\":\"what is gitHub\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#webpage\",\"url\":\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/\",\"name\":\"A Beginner's Introduction to GitHub - Niraltek Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#primaryimage\"},\"datePublished\":\"2022-09-05T11:18:06+00:00\",\"dateModified\":\"2022-11-08T09:39:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.niraltek.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A Beginner&#8217;s Introduction to GitHub\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf\",\"name\":\"Benitta Arogana\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.niraltek.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g\",\"caption\":\"Benitta Arogana\"},\"sameAs\":[\"http:\/\/www.niraltek.com\"],\"url\":\"https:\/\/www.niraltek.com\/blog\/author\/benitta\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A Beginner's Introduction to GitHub - Niraltek Blog","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":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/","og_locale":"en_US","og_type":"article","og_title":"A Beginner's Introduction to GitHub - Niraltek Blog","og_description":"GitHub is a cloud-based service website in which the developers can store, manage, track and control changes to their code. There are two connected principles. *Version control *Git What is version control? Version control is also called as source control, which is used for tracking and managing changes to software code. Version control systems are [&hellip;]","og_url":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/","og_site_name":"Niraltek Blog","article_published_time":"2022-09-05T11:18:06+00:00","article_modified_time":"2022-11-08T09:39:08+00:00","og_image":[{"width":802,"height":402,"url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/github-01.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Benitta Arogana","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.niraltek.com\/blog\/#website","url":"https:\/\/www.niraltek.com\/blog\/","name":"Niraltek Blog","description":"Niraltek, IOT, BLOGS","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.niraltek.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/github-01.jpg","contentUrl":"https:\/\/www.niraltek.com\/blog\/wp-content\/uploads\/2022\/09\/github-01.jpg","width":802,"height":402,"caption":"what is gitHub"},{"@type":"WebPage","@id":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#webpage","url":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/","name":"A Beginner's Introduction to GitHub - Niraltek Blog","isPartOf":{"@id":"https:\/\/www.niraltek.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#primaryimage"},"datePublished":"2022-09-05T11:18:06+00:00","dateModified":"2022-11-08T09:39:08+00:00","author":{"@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf"},"breadcrumb":{"@id":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.niraltek.com\/blog\/a-beginners-introduction-to-github\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.niraltek.com\/blog\/"},{"@type":"ListItem","position":2,"name":"A Beginner&#8217;s Introduction to GitHub"}]},{"@type":"Person","@id":"https:\/\/www.niraltek.com\/blog\/#\/schema\/person\/148d5997dffae26a9ba784fb467c3aaf","name":"Benitta Arogana","image":{"@type":"ImageObject","@id":"https:\/\/www.niraltek.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/166f2ff68b64692cd13e9cd238ccbd5d?s=96&d=mm&r=g","caption":"Benitta Arogana"},"sameAs":["http:\/\/www.niraltek.com"],"url":"https:\/\/www.niraltek.com\/blog\/author\/benitta\/"}]}},"_links":{"self":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/552"}],"collection":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/comments?post=552"}],"version-history":[{"count":10,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/posts\/552\/revisions\/894"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media\/570"}],"wp:attachment":[{"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/media?parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/categories?post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.niraltek.com\/blog\/wp-json\/wp\/v2\/tags?post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}