{"id":1405,"date":"2020-08-12T12:20:29","date_gmt":"2020-08-12T06:50:29","guid":{"rendered":"http:\/\/blog.nuventure.in\/?p=1405"},"modified":"2023-05-18T17:46:47","modified_gmt":"2023-05-18T12:16:47","slug":"advanced-git-and-git-tips","status":"publish","type":"post","link":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/","title":{"rendered":"Advanced Git and Git tips"},"content":{"rendered":"\n<p>Git is a popular version control tool used by developers all over the world. Created by Linus Torvalds in 2005, it plays a huge role in coordinating work between different developers on a project. While most developers are familiar with using Git, here I\u2019ve compiled some of the tips and tricks with Git that has made me more productive over the years.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git aliases<\/strong><\/h2>\n\n\n\n<p>Git aliases are shortcuts you can use instead of long commands that you have to type out frequently. These aliases are stored in the git config file and can be created with local or global scope.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s say we want to create an alias co for the git checkout command. For this, we use the git config command<\/p>\n\n\n\n<p class=\"has-text-align-left\"><code>$git config --global alias.co checkout<\/code><\/p>\n\n\n\n<p>Similarly for mapping br to branch command,&nbsp;<\/p>\n\n\n\n<p><code>$ git config --global alias.br \"branch\"<\/code><\/p>\n\n\n\n<p>Other examples&nbsp;<\/p>\n\n\n\n<p>For cob to checkout -b<\/p>\n\n\n\n<p><code>$ git config --global alias.cob \"checkout -b\"<\/code><\/p>\n\n\n\n<p>For rh to reset HEAD<\/p>\n\n\n\n<p><code>$ git config --global alias.rh \"reset HEAD\"<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git stash<\/strong><\/h2>\n\n\n\n<p>GIt stash is a function that comes handy when you want to save something you\u2019re working on, but you\u2019re not ready for a commit just yet. For example if you\u2019re working on something and you have to switch to something else before the first one is not fully done. The git stash command saves the changes you\u2019ve made on your working copy temporarily.&nbsp;<\/p>\n\n\n\n<p>To save a stash, let\u2019s say, named example_stash<\/p>\n\n\n\n<p><code>git stash save \"example_stash\"<\/code><\/p>\n\n\n\n<p>All of your stashes will be stored in a \u201cstash stack\u201d<\/p>\n\n\n\n<p>To view all of your stashes<\/p>\n\n\n\n<p><code>git stash list<\/code><\/p>\n\n\n\n<p>To apply your stash, AND remove it from the stash stack, you pop the stash<\/p>\n\n\n\n<p><code>git stash pop stash@{n}<\/code><\/p>\n\n\n\n<p>To apply your stash and keep it in the stash stack, you use the apply<\/p>\n\n\n\n<p><code>git stash apply stash@{n}<\/code><\/p>\n\n\n\n<p>Here, n is the index number of the specific stash in the stash list.<\/p>\n\n\n\n<p>To see the files that changed in the recent stash<\/p>\n\n\n\n<p><code>git stash show<\/code><\/p>\n\n\n\n<p>Make it git stash show -p and you can see the diff&nbsp;<\/p>\n\n\n\n<p>To delete a specific stash,&nbsp;<\/p>\n\n\n\n<p><code>stash drop &lt;stash-name&gt;<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git tags<\/strong><\/h2>\n\n\n\n<p>Tagging is used to mark specific points in the history of a repository, usually a release.&nbsp;<\/p>\n\n\n\n<p>There are two types of tags, lightweight and annotated. Lightweight tags are like a branch that doesn\u2019t change, its just a pointer to a specific commit.&nbsp;&nbsp;<\/p>\n\n\n\n<p><code>$ git tag v1.1<\/code><\/p>\n\n\n\n<p>An annotated tag contains additional information, and are stored as full objects in git database. They contain the name, email ID of the tagger, and a tagging message.&nbsp;<\/p>\n\n\n\n<p><code>$ git tag -a v1.0 -m 'Version 1.0\u2019<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git cherry-pick<\/strong><\/h2>\n\n\n\n<p>Git cherry-pick is used to pick a commit from one branch and apply it to another. It\u2019s useful if you want to pick specific changes you have made on a different branch but are not yet merged to your default branch (say, staging or master).<br><br><code>$ git cherry-pick<\/code><\/p>\n\n\n\n<p><code>7300a6130d9447e18a931e898b64eefedea19544<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git Submodule<\/strong><\/h2>\n\n\n\n<p>Git submodules are great when you want to clone one project within another, but want to keep the two projects separate.&nbsp;<\/p>\n\n\n\n<p>This command comes useful when you want to add a specific repository to a specific path.&nbsp;<\/p>\n\n\n\n<p><code>$ git submodule add &lt;remote_repository&gt; &lt;path\/to\/submodule&gt;<\/code><\/p>\n\n\n\n<p>When you want to update (clone missing submodules, and checkout the commit specified by the super-repo)&nbsp; registered submodules, this command is useful<\/p>\n\n\n\n<p><code>$ git submodule update [\u2014init]<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git Rebase or<\/strong> <strong>Git Merge<\/strong><\/h2>\n\n\n\n<p>These two are used to integrate changes from one branch to another.&nbsp;<\/p>\n\n\n\n<p>Rebase lets you apply all the commits of one branch (Let\u2019s say feature) on top of commits from another branch (Master branch). If there are any conflicts between the commits on two branches, git will provide a message. Generally, before running the rebase command, the branch is checkout. Note that, rebase will rewrite history.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-1-1024x1024.png\" alt=\"\" class=\"wp-image-1406\" width=\"256\" height=\"256\" srcset=\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-1-1024x1024.png 1024w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-1-300x300.png 300w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-1-150x150.png 150w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-1-768x768.png 768w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-1-600x600.png 600w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-1.png 1080w\" sizes=\"(max-width: 256px) 100vw, 256px\" \/><figcaption class=\"wp-element-caption\">Merge<\/figcaption><\/figure>\n\n\n\n<p><code>$ git checkout feature<\/code><\/p>\n\n\n\n<p><code>$ git rebase master&nbsp;<\/code><\/p>\n\n\n\n<p>With Git Merge, you can integrate contents from one branch (master) to another branch (feature). Here the source branch (master) remains the same. In merge, the history and chronological order is preserved<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-2-1024x1024.png\" alt=\"\" class=\"wp-image-1407\" width=\"256\" height=\"256\" srcset=\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-2-1024x1024.png 1024w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-2-300x300.png 300w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-2-150x150.png 150w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-2-768x768.png 768w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-2-600x600.png 600w, https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Merge-2.png 1080w\" sizes=\"(max-width: 256px) 100vw, 256px\" \/><figcaption class=\"wp-element-caption\">Rebase<\/figcaption><\/figure>\n\n\n\n<p><code>$ git checkout feature<\/code><\/p>\n\n\n\n<p><code>$ git merge master<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git revert<\/strong><\/h2>\n\n\n\n<p>Git revert is useful if you feel like you accidentally made a commit, or if you notice a bug which was caused by a single commit. Revert undoes a commit by creating a new commit. Unlike reset, revert doesn\u2019t remove all the previous commits. This is great since it doesn\u2019t change project history, and it can be applied at any point in history.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Fixing mistakes<\/strong><\/h2>\n\n\n\n<p>If you want to abandon everything since your last commit, use<\/p>\n\n\n\n<p><code>$ git reset --hard<\/code><\/p>\n\n\n\n<p>If merging results in conflicts, and you just want to forget about it, this command will be useful. But it can also be dangerous, so be careful while using it. Reset hard will actually change your files to match the commit you reset to.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s say you forgot something on your last commit. Use this command<\/p>\n\n\n\n<p><code>$ git reset --soft HEAD^<\/code><\/p>\n\n\n\n<p>It will undo the last commit, but keep all the changes in staging area.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Golden rules while using Git<\/strong><\/h2>\n\n\n\n<p>&#8211; Don&#8217;t change published history<\/p>\n\n\n\n<p>&#8211; Always work on branches \/ branch per feature<\/p>\n\n\n\n<p>&#8211; Write useful commit messages<\/p>\n\n\n\n<p>&#8211; Update often from remote origin<\/p>\n\n\n\n<p>&#8211; Don&#8217;t use Git GUIs extensively<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git is a popular version control tool used by developers all over the world. Created by Linus Torvalds in 2005, it plays a huge role in coordinating work between different developers on a project. While most developers are familiar with using Git, here I\u2019ve compiled some of the tips and tricks with Git that has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1409,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[27,26],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Nuventure Blog Advanced Git and Git tips -<\/title>\n<meta name=\"description\" content=\"Git is one of the most commonly used tools for version control. Here are a couple of advanced Git tips and tricks to make you more productive\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nuventure Blog Advanced Git and Git tips -\" \/>\n<meta property=\"og:description\" content=\"Git is one of the most commonly used tools for version control. Here are a couple of advanced Git tips and tricks to make you more productive\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/\" \/>\n<meta property=\"og:site_name\" content=\"Nuventure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nuventureco\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-12T06:50:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-18T12:16:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tinu Cleatus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@nuventureco\" \/>\n<meta name=\"twitter:site\" content=\"@nuventureco\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tinu Cleatus\" \/>\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\":\"Article\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/\"},\"author\":{\"name\":\"Tinu Cleatus\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb\"},\"headline\":\"Advanced Git and Git tips\",\"datePublished\":\"2020-08-12T06:50:29+00:00\",\"dateModified\":\"2023-05-18T12:16:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/\"},\"wordCount\":808,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png\",\"articleSection\":[\"Linux\",\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/\",\"name\":\"Nuventure Blog Advanced Git and Git tips -\",\"isPartOf\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png\",\"datePublished\":\"2020-08-12T06:50:29+00:00\",\"dateModified\":\"2023-05-18T12:16:47+00:00\",\"description\":\"Git is one of the most commonly used tools for version control. Here are a couple of advanced Git tips and tricks to make you more productive\",\"breadcrumb\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png\",\"contentUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png\",\"width\":1200,\"height\":675,\"caption\":\"Advanced Git and Git tips\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/nuventureconnect.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advanced Git and Git tips\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#website\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/\",\"name\":\"Nuventure Blog\",\"description\":\"Knowledge.transmit!\",\"publisher\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/nuventureconnect.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#organization\",\"name\":\"Nuventure Connect Private Limited\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp\",\"contentUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp\",\"width\":200,\"height\":89,\"caption\":\"Nuventure Connect Private Limited\"},\"image\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/nuventureco\/\",\"https:\/\/x.com\/nuventureco\",\"https:\/\/www.instagram.com\/nuventure\/\",\"https:\/\/in.linkedin.com\/company\/nuventure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb\",\"name\":\"Tinu Cleatus\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g\",\"caption\":\"Tinu Cleatus\"},\"url\":\"https:\/\/nuventureconnect.com\/blog\/author\/tinu\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nuventure Blog Advanced Git and Git tips -","description":"Git is one of the most commonly used tools for version control. Here are a couple of advanced Git tips and tricks to make you more productive","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:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/","og_locale":"en_US","og_type":"article","og_title":"Nuventure Blog Advanced Git and Git tips -","og_description":"Git is one of the most commonly used tools for version control. Here are a couple of advanced Git tips and tricks to make you more productive","og_url":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/","og_site_name":"Nuventure Blog","article_publisher":"https:\/\/www.facebook.com\/nuventureco\/","article_published_time":"2020-08-12T06:50:29+00:00","article_modified_time":"2023-05-18T12:16:47+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png","type":"image\/png"}],"author":"Tinu Cleatus","twitter_card":"summary_large_image","twitter_creator":"@nuventureco","twitter_site":"@nuventureco","twitter_misc":{"Written by":"Tinu Cleatus","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#article","isPartOf":{"@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/"},"author":{"name":"Tinu Cleatus","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb"},"headline":"Advanced Git and Git tips","datePublished":"2020-08-12T06:50:29+00:00","dateModified":"2023-05-18T12:16:47+00:00","mainEntityOfPage":{"@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/"},"wordCount":808,"commentCount":0,"publisher":{"@id":"https:\/\/nuventureconnect.com\/blog\/#organization"},"image":{"@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage"},"thumbnailUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png","articleSection":["Linux","Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/","url":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/","name":"Nuventure Blog Advanced Git and Git tips -","isPartOf":{"@id":"https:\/\/nuventureconnect.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage"},"image":{"@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage"},"thumbnailUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png","datePublished":"2020-08-12T06:50:29+00:00","dateModified":"2023-05-18T12:16:47+00:00","description":"Git is one of the most commonly used tools for version control. Here are a couple of advanced Git tips and tricks to make you more productive","breadcrumb":{"@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#primaryimage","url":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png","contentUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2020\/08\/Advanced-Git-and-Git-tips.png","width":1200,"height":675,"caption":"Advanced Git and Git tips"},{"@type":"BreadcrumbList","@id":"https:\/\/nuventureconnect.com\/blog\/2020\/08\/12\/advanced-git-and-git-tips\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nuventureconnect.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Advanced Git and Git tips"}]},{"@type":"WebSite","@id":"https:\/\/nuventureconnect.com\/blog\/#website","url":"https:\/\/nuventureconnect.com\/blog\/","name":"Nuventure Blog","description":"Knowledge.transmit!","publisher":{"@id":"https:\/\/nuventureconnect.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nuventureconnect.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/nuventureconnect.com\/blog\/#organization","name":"Nuventure Connect Private Limited","url":"https:\/\/nuventureconnect.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp","contentUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp","width":200,"height":89,"caption":"Nuventure Connect Private Limited"},"image":{"@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/nuventureco\/","https:\/\/x.com\/nuventureco","https:\/\/www.instagram.com\/nuventure\/","https:\/\/in.linkedin.com\/company\/nuventure"]},{"@type":"Person","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb","name":"Tinu Cleatus","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g","caption":"Tinu Cleatus"},"url":"https:\/\/nuventureconnect.com\/blog\/author\/tinu\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts\/1405"}],"collection":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/comments?post=1405"}],"version-history":[{"count":3,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts\/1405\/revisions"}],"predecessor-version":[{"id":2161,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts\/1405\/revisions\/2161"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/media\/1409"}],"wp:attachment":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/media?parent=1405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/categories?post=1405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/tags?post=1405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}