{"id":112,"date":"2024-02-12T17:21:56","date_gmt":"2024-02-12T17:21:56","guid":{"rendered":"https:\/\/www.xopsschool.com\/tutorials\/?p=112"},"modified":"2024-02-29T18:20:43","modified_gmt":"2024-02-29T18:20:43","slug":"what-is-git-hub","status":"publish","type":"post","link":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/","title":{"rendered":"What is git hub?"},"content":{"rendered":"\n<p>GitHub is like a website where people who write computer code can put their work. It helps them save and organize their code, and it has tools to work together with others, review each other&#8217;s code, and manage projects. It&#8217;s a handy place for developers to keep track of changes and work on software together.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring git for the first time ?<\/h2>\n\n\n\n<p>$git config global user.name \u201c&lt;Enter your username here>&#8221;<\/p>\n\n\n\n<p>$ git config global user.email &#8220;&lt;Enter yourn email here>&#8221;<\/p>\n\n\n\n<p><strong>General Git Features :-<\/strong>  <\/p>\n\n\n\n<p><strong>Initializing Git :-<\/strong>  $ git init  <\/p>\n\n\n\n<p>Git now knows that it should watch the folder you initiated it on. Git creates a hidden folder to keep track of changes.<\/p>\n\n\n\n<p>Staged files are files that are ready to be committed to the repository you are working on.<br>When you first add files to an empty repository, they are all untracked. To get Git to track them, you need to stage them, or add them to the staging environment.<br><\/p>\n\n\n\n<p><strong>Staging all files in a folder :-<\/strong><br>$ git add all aur git add -A<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Making a Commit :-<\/h2>\n\n\n\n<p>Adding commits keep track of our progress and changes as we work. Git considers each commit change point or &#8220;save point&#8221;. It is a point in the project you can go back to if you find a bug, or want to make a change. When we commit, we should always include a message.<\/p>\n\n\n\n<p>$ git commit m \u201c&lt;Enter your message here>&#8221;<br><strong>Git Commit without Stage :-<\/strong><br>Sometimes, when you make small changes, using the staging environment seems like a waste of time. It is possible to commit changes directly, skipping the staging environment.<br>$ git commit a m \u201c\u201c&lt;Enter your message here>&#8221;<\/p>\n\n\n\n<p><strong>Status of files and log:-<\/strong><\/p>\n\n\n\n<p>$ git status  <\/p>\n\n\n\n<p>File status in a more compact way:-<\/p>\n\n\n\n<p>$ git status short<br>Log of a file :-  Log is used to view the history of commits for a repo.<br>$ git log<br>$ git log oneline <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub is like a website where people who write computer code can put their work. It helps them save and organize their code, and it has tools to work together with others, review each other&#8217;s code, and manage projects. It&#8217;s a handy place for developers to keep track of changes and work on software together. &#8230; <a title=\"What is git hub?\" class=\"read-more\" href=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/\" aria-label=\"Read more about What is git hub?\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-git-github"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is git hub? - XOps Tutorials!!!<\/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.xopsschool.com\/tutorials\/what-is-git-hub\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is git hub? - XOps Tutorials!!!\" \/>\n<meta property=\"og:description\" content=\"GitHub is like a website where people who write computer code can put their work. It helps them save and organize their code, and it has tools to work together with others, review each other&#8217;s code, and manage projects. It&#8217;s a handy place for developers to keep track of changes and work on software together. ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/\" \/>\n<meta property=\"og:site_name\" content=\"XOps Tutorials!!!\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-12T17:21:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-29T18:20:43+00:00\" \/>\n<meta name=\"author\" content=\"ritik hansda\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ritik hansda\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/\"},\"author\":{\"name\":\"ritik hansda\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"headline\":\"What is git hub?\",\"datePublished\":\"2024-02-12T17:21:56+00:00\",\"dateModified\":\"2024-02-29T18:20:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/\"},\"wordCount\":327,\"commentCount\":0,\"articleSection\":[\"Git &amp; GitHub\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/\",\"name\":\"What is git hub? - XOps Tutorials!!!\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\"},\"datePublished\":\"2024-02-12T17:21:56+00:00\",\"dateModified\":\"2024-02-29T18:20:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.xopsschool.com\/tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is git hub?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/\",\"name\":\"XOps Tutorials!!!\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7\",\"name\":\"ritik hansda\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g\",\"caption\":\"ritik hansda\"},\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/author\/ritikhansda\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is git hub? - XOps Tutorials!!!","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.xopsschool.com\/tutorials\/what-is-git-hub\/","og_locale":"en_US","og_type":"article","og_title":"What is git hub? - XOps Tutorials!!!","og_description":"GitHub is like a website where people who write computer code can put their work. It helps them save and organize their code, and it has tools to work together with others, review each other&#8217;s code, and manage projects. It&#8217;s a handy place for developers to keep track of changes and work on software together. ... Read more","og_url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/","og_site_name":"XOps Tutorials!!!","article_published_time":"2024-02-12T17:21:56+00:00","article_modified_time":"2024-02-29T18:20:43+00:00","author":"ritik hansda","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ritik hansda","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#article","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/"},"author":{"name":"ritik hansda","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"headline":"What is git hub?","datePublished":"2024-02-12T17:21:56+00:00","dateModified":"2024-02-29T18:20:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/"},"wordCount":327,"commentCount":0,"articleSection":["Git &amp; GitHub"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/","url":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/","name":"What is git hub? - XOps Tutorials!!!","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#website"},"datePublished":"2024-02-12T17:21:56+00:00","dateModified":"2024-02-29T18:20:43+00:00","author":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7"},"breadcrumb":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.xopsschool.com\/tutorials\/what-is-git-hub\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.xopsschool.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"What is git hub?"}]},{"@type":"WebSite","@id":"https:\/\/www.xopsschool.com\/tutorials\/#website","url":"https:\/\/www.xopsschool.com\/tutorials\/","name":"XOps Tutorials!!!","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/c0119ddd2d27ea9cd476e809c8294ba7","name":"ritik hansda","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fe0bc437410899c524975272622377e50e726108b1ad03f7b4488f734304fce?s=96&d=mm&r=g","caption":"ritik hansda"},"url":"https:\/\/www.xopsschool.com\/tutorials\/author\/ritikhansda\/"}]}},"_links":{"self":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":1,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/112\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}