{"componentChunkName":"component---src-templates-tag-js","path":"/tags/version-control/","result":{"data":{"site":{"siteMetadata":{"title":"LoginRadius Blog"}},"allMarkdownRemark":{"totalCount":1,"edges":[{"node":{"fields":{"slug":"/engineering/github-cli-tool/"},"html":"<p><em>The <a href=\"https://cli.github.com/\">GitHub CLI</a> is a recent GitHub released tool that takes tasks of issue / PR management to the terminal. It will be a useful tool that will put more of our workflow for software creation into the textual domain rather than the visual domain. It’s just called <code>gh</code>.</em></p>\n<p>*<strong>*Installation of GitHub CLI 💡**</strong></p>\n<p>GitHub CLI has releases with significant operating systems, visit the installation page and find instructions on how to install GitHub CLI for your operating system.</p>\n<p>For [Windows] and [macOS], you will use the package managers to update and maintain GitHub CLI, and for <a href=\"https://github.com/cli/cli/releases/tag/v1.0.0\">Linux</a> users, you may need to grab the software from the latest release website.</p>\n<p>Here are examples of the installation instructions for each compatible platform:</p>\n<p>→ Windows</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"0\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">scoop bucket add github-gh https://github.com/cli/scoop-gh.gitscoop install gh</span></span></code></pre>\n<p>→ macOS</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"1\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">brew install github</span></span></code></pre>\n<p>→ Debian/Ubuntu Linux</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"2\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">sudo apt install git &amp;&amp; sudo dpkg -i gh_*_linux_amd64.deb</span></span></code></pre>\n<p>→ Fedora/Centos Linux</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"3\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">sudo yum localinstall gh_*_linux_amd64.rpm</span></span></code></pre>\n<p>→ Arch Linux</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"4\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">yay -S github-cli</span></span></code></pre>\n<p>You’ll need to authenticate your account after you install GitHub CLI. Running any command would activate this process of authentication(via OAuth). Well, you can use Git CLI.\n<span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 623px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 126.64526484751204%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAZCAIAAAC+dZmEAAAACXBIWXMAAAsTAAALEwEAmpwYAAADNElEQVQ4y41UWWsUWRSu3zIPwgz44IvMgw+CL4IgCI5BRlFEQYm44wrz7OhMUBBFBEFwA1/ckhmDISC44ZIIOkl6S9Ld1bXdqurqVHXVrbv5VVWbODqtc/j69Klzz3fvueecKi1lvABN2eYt2zZsHFi1es3vfwwppWpesx6YMM5fuHT6zNDZofPAYjyg4ZfQFBHv/5leu2790ROn9h04vHHzr/D89vLcn5NXeSR27tkbxzE8g/sPNZotGDipRy7AuNi1e/CHZT/9uHzFxctXEGF1XCf0YVy4ePnhyF/Xrt84cuwkHpOcuUTGTlKpdtC5efvO6Ng4IoRUElCZJJQS15+vNxAAP/2CnPPTlGVeQly9ZRimZRHS0PUmHkzLdkg3Thjni8yCrCiTNJWUqZQrxw1qtUbLIPNNs2WCbDd1u9GydcPxgy4TyFllkTk0nrqSu4pDE0AJD+n3IP0lW/lYkowUYTx1AI1Hkx3nObFeB95E4L4NvEnfeePZr6Hb5C1ArFeZP8NEx5+E9skbFk8pXtZ4PJNGU0lYolEpiaDLOUqLurswA38eUC5i4rAkaE2xWdwZlUoY+xo0x6JBP/eAAmhcoCPoipRFbzJkPyEk/x40tHHixVPbtgzDgPZc1/bjukMxM6rX5kL/h2TkJ2OjtmU5jmNZ+LdNp90wPNsmEGjHIZ7f7gSdbjf+kiyESLngXDDGv94bq6q/aJirmXLVNJq10rvA0xd8Pex0MEzZzftLktD8ZFmIkIJKkQqWZGl888ClkzGuc/Wm53u6Xm825lot0yHEME1MN5b60ZBvRsYphmm3fWLpZbtVtUzD83y8vWEUif6Z83zfrGAoVQ4obCXV/5asYOXqrGXbU1PT5Up1tvIhDKzv0mj+8dFQK0qp+PTic5bwdKmfXPIc4t/IPL07q3w8heh1Bxp2gW8cjtWsVTwfEgDJoFRpfvdibEbnn92cHr5bGXtQG79beXy/On6vMnZrZmRk9gm6ioLJ/OuTMTCGc/P1MOrCxnNMkx2PTq689cum4YPbHx3f+vfR7aOnBkYO/nx7YGD40AKNNNlfcIGE0TCNwrQLHUFTGF0YMUuQ+UdA13EK+hZQxwAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Auhtorize\"\n        title=\"Auhtorize\"\n        src=\"/static/b6ad06259d464af651573dc4aed7dcba/6114d/Authorize.png\"\n        srcset=\"/static/b6ad06259d464af651573dc4aed7dcba/6114d/Authorize.png 623w\"\n        sizes=\"(max-width: 623px) 100vw, 623px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>*<strong>*What is CLI really doing? 🤔**</strong></p>\n<p>The GitHub CLI lets you handle issues/ PRs / repositories from inside your console. Let’s have a look at it:</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"5\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">gh issue [status, list, view, create]</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">gh pr [status, list, view, checkout, create]</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">gh repo [view, create, clone, fork]</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">gh </span><span class=\"mtk11\">help</span></span></code></pre>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 768px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 64.76923076923077%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB+ElEQVQ4y5WSSU9bMRSFjTKwa1XyxrzBb87UZNNtl5AumnRRVQKEIGLDBgkkghBDaJr+7/j0OHmp1NIKWHy6tuV7fO71FWI+XxKIxUKJHwsdX89P5mqN+VwJMf++3LqaYnsyUfXJCWrHx2Qdqy/hhHeZK25uNoLz5fbXb/gYOyr/4OGdYcLUmNbL2WmoyulpKfjwsKyPvyD2AiXTBL6MECUpTNuBQcxnWN0xTFU5OoKYzSh4d7esj0aQfqiiNIOME8SMluPCsOzn2QgeHIDm1oLbFPQcVxWdLvKihYzIKIYXhIj4QCDlah8S/WAQSvisQrbaaPLMaBh/CtY/jxAFoSq6PYRMSLIcTtOH5TZhE5Nu9drQrv9V+t8OtaC5Y6goS5GSwWCATqeNVquFoigQ5znSdhtpnqHp+2iY9u/+/bdkSYf6M9KUpbDELMtYboyE+w363HKcJ3186pCCUShVq99HQlfd/gBdutQ97ZBu7z16PIvzAn6UoCnjFR4N+GyP2/RUZX+/FLy/59iM0XjzVlmuy48I4IchPyCC53kIOJMpZy0kCYnpyGaZFrHZU91jSzs8PCzHhoJbZ2eojUaqNvyE6t4eqrua3fV6OERFR1Ip0etaGavMqY3HSpyflw5ns6W4vYWYTpW4vIS4uHgdOuf6Wq00Hh/VL6PvkYUjnVP6AAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"gh pr status\"\n        title=\"gh pr status\"\n        src=\"/static/dd3fb5eb26988074652e8f4e50e378f7/e5715/ghpr.png\"\n        srcset=\"/static/dd3fb5eb26988074652e8f4e50e378f7/a6d36/ghpr.png 650w,\n/static/dd3fb5eb26988074652e8f4e50e378f7/e5715/ghpr.png 768w,\n/static/dd3fb5eb26988074652e8f4e50e378f7/71c8e/ghpr.png 875w\"\n        sizes=\"(max-width: 768px) 100vw, 768px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p><em>It should be said that gh is not the same stuff as git. It’s because <code>gh</code> just adds GitHub tools to the terminal. Version management is yet to be managed with git.</em></p>\n<p>*<strong>*CLI Commands ➫**</strong></p>\n<p>We’re going to cover a bunch of exciting commands. Let’s use the official <a href=\"https://github.com/angular/angular\">Angular.js repo</a> to run <code>gh</code> commands</p>\n<p>Clone the <code>Angular</code> repo, and navigate to the repository. You can either clone the repo through HTTPS/ ssh/ Git CLI. I’m going to clone the repo through <code>git CLI</code> since we are working on GIT CLI.</p>\n<p>Let’s execute the <code>$gh issue --help</code> see what commands are available.</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"6\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">gh issue --help  </span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">Work with GitHub issues</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">USAGE</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  gh issue &lt;command&gt; [flags]</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">CORE COMMANDS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  close:      Close issue</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  create:     Create a new issue</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  list:       List and filter issues </span><span class=\"mtk15\">in</span><span class=\"mtk1\"> this repository</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  reopen:     Reopen issue</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  status:     Show the status of relevant issues</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  view:       View an issue</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">FLAGS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  -R, --repo OWNER/REPO   Select another repository using the OWNER/REPO format</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">INHERITED FLAGS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  --help   Show </span><span class=\"mtk11\">help</span><span class=\"mtk1\"> </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> </span><span class=\"mtk11\">command</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">ARGUMENTS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  An issue can be supplied as an argument </span><span class=\"mtk15\">in</span><span class=\"mtk1\"> any of the following </span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  formats:</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  - by number, e.g. </span><span class=\"mtk8\">&quot;123&quot;</span><span class=\"mtk1\">; or</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  - by URL, e.g. </span><span class=\"mtk8\">&quot;https://github.com/OWNER/REPO/issues/123&quot;</span><span class=\"mtk1\">.</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">EXAMPLES</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh issue list</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh issue create --label bug</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh issue view --web</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">LEARN MORE</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  Use </span><span class=\"mtk8\">&#39;gh &lt;command&gt; &lt;subcommand&gt; --help&#39;</span><span class=\"mtk1\"> </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> more information about a command.</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  Read the manual at https://cli.github.com/manual</span></span></code></pre>\n<p>It’s Time to view Problems/issues in the angular repo.😁</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"7\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">gh issue list</span></span></code></pre>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 490px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 124.48979591836735%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAZCAIAAAC+dZmEAAAACXBIWXMAAAsTAAALEwEAmpwYAAADkklEQVQ4yy1UCY7TQBDMD7nZI85hO+Mjvu3YubPciIchIViOFbC7Ai3ZFTzAM5MHUDWJZEXjeLq7qrq6O7+d4ffQ/XdsqWGosqkKCulE0k3kIODBiZSXSTdWYanGlRwlEq8ilf2gfdzr/AjcD5W/tXray/WLd3p6ppEibVRSq3yG2wzDGb/FnAc/4znI20e9zqXvnGfi9tTSo1SvX6tRigp6ssKviioAQSJW9lJdr9W4VPEElQGnfTpAZec8F3ddSzuxymYS4MOSwdlU5zPl5/iTMUHOymHBSNQXaftk0LnynK+J+HtiguuVxtWgVPWGNxCA+Gii0ylK6WopRaKRAqS8dM/ZAWdW9gs93ehmo/EtrlFWxxOek4YBECKbEj+IVAsES8vr/PQJe2tZFKzZUFukn6yIGU88QX3IpjdvAJviAwX+HFeEfek5n3LvFpUBbHZGnbKGPBFQLgjYPQhOIeqVOaxlWLSP+6z8ofSg9s4vJFLiwWeAjMG5AGDiRxg6lDQSKgC2nwM/OV8L50sqtl0Go8msCWwEZjSn8ktVLaEzkkqRHRrJ4D4F+1QAdk8PxuQMV/g5PztjNhZZQAcH9AyMipm0hDKKyqMhOX+GSVAZJplu2NK0MWwbKhyWRjNCRat261d8hUnR54fWXjBxY1k79PPZW9wgZ/SGNqKrtPEG8aORxYKeFYns+/LYJuyPhbft9WASPX+Ob7wN2iIhBJMLUqGgNmND8LFxGAS7Es55YVo1CJkY8CAbsEUVDz5GKjKRM9QHHRIxbj8I9r4OMFU74GQYMbM4dDIFGT8ytoGcBywNCHOqrjwbDvtjRpIG7Hl69ZLewgwMQmpeLTS0dSKUxZDDm8Rv4inYt2R0d9rdwZ6wDqaKmNln5hqGVL5aIp4dAmfoWq+5D45sOmzfKg0bxvVhHnHPjASfyCi09xwy+hy19mjYPulzJC/iEYNhRgwdTAJ5SZVWgU77CTHroaTtwDmqwIKDYZaBdwPBwspIYsYYD/TDVOAel8mUzQf4vZbosz1uARuVfwYuRxLenj+nGCLV5RKJuABFYnQKFcMWHI+MRKQdUW1wvohGdyfdXWgUOnHZIUCFqugqOgfn0BslGaHhyIKeo3/GYS6CtxhJWKeco/scA6wEL6NChjkm0Wy12cG52IHDoL1/2vnl2teegx2m7EgZG+0rEJslkF6Xcy4T2wwZVy+Wbr990G3vnfwHK6J5DQ/JkAUAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Angular issue\"\n        title=\"Angular issue\"\n        src=\"/static/3049d6111c908f6724c7ccdf2b1227e6/41d3c/angular%20issue.png\"\n        srcset=\"/static/3049d6111c908f6724c7ccdf2b1227e6/41d3c/angular%20issue.png 490w\"\n        sizes=\"(max-width: 490px) 100vw, 490px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p>*<strong>*Pull Requests 🤖**</strong></p>\n<p>It is now possible to build a Pull Request (PR) on the terminal. You will perform <code>$gh pr create</code> right after you have committed a feature or bug branch. This interactively creates the pull request.😉</p>\n<p>Let’s execute the <code>$gh pr --help</code> see what commands are available.</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"8\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">Work with GitHub pull requests</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">USAGE</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  gh pr &lt;command&gt; [flags]</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">CORE COMMANDS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  checkout:   Check out a pull request </span><span class=\"mtk15\">in</span><span class=\"mtk1\"> git</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  checks:     Show CI status </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> a single pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  close:      Close a pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  create:     Create a pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  diff:       View changes </span><span class=\"mtk15\">in</span><span class=\"mtk1\"> a pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  list:       List and filter pull requests </span><span class=\"mtk15\">in</span><span class=\"mtk1\"> this repository</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  merge:      Merge a pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  ready:      Mark a pull request as ready </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> review</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  reopen:     Reopen a pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  review:     Add a review to a pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  status:     Show status of relevant pull requests</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  view:       View a pull request</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">FLAGS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  -R, --repo OWNER/REPO   Select another repository using the OWNER/REPO format</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">INHERITED FLAGS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  --help   Show </span><span class=\"mtk11\">help</span><span class=\"mtk1\"> </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> </span><span class=\"mtk11\">command</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">ARGUMENTS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  A pull request can be supplied as an argument </span><span class=\"mtk15\">in</span><span class=\"mtk1\"> any of the following formats:</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  - by number, e.g. </span><span class=\"mtk8\">&quot;123&quot;</span><span class=\"mtk1\">;</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  - by URL, e.g. </span><span class=\"mtk8\">&quot;https://github.com/OWNER/REPO/pull/123&quot;</span><span class=\"mtk1\">; or</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  - by the name of its head branch, e.g. </span><span class=\"mtk8\">&quot;patch-1&quot;</span><span class=\"mtk1\"> or </span><span class=\"mtk8\">&quot;OWNER:patch-1&quot;</span><span class=\"mtk1\">.</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">EXAMPLES</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh pr checkout 353</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh pr create --fill</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh pr view --web</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">LEARN MORE</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  Use </span><span class=\"mtk8\">&#39;gh &lt;command&gt; &lt;subcommand&gt; --help&#39;</span><span class=\"mtk1\"> </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> more information about a command.</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  Read the manual at https://cli.github.com/manual</span></span></code></pre>\n<p><strong>**</strong>Let’s view some of it:👀<strong>**</strong></p>\n<p>current PR’s in the repo:</p>\n<p><code>$ gh pr list</code>\n<span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 104.28571428571429%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAIAAADJt1n/AAAACXBIWXMAAAsTAAALEwEAmpwYAAADJ0lEQVQ4yzVU2W7TQBT1D7KWNrv3NfGaxUmapgXBz1FVJVKXIOAd8dBklnwA59ggjUb22HPPPcuMofxURaW0EjkK5SCQZqScibRjvroTDDEMxNBXYS7dMV7xsxj44nVXvO0bf85Gv89M0bGxTQ4DOYq4x4zEBVZi6U1Ez+U6v4Zcwdz3RM8T74fGLvbuYufFik6Lra4xrvViq9KFymvMevVRzTYqmWnM1aWablRcaXxabNGm8ZR4D7F7RGOTOTZIO1GTmQpy5WeqXHEultig4lIGmQTBqOQPRS27rrFL/bvMO4yC03yrVzc6W6iwVMVKL2+wWc+vWDHI9fRSrz8pfM2X6IWKdBzjOXR3Y/dl4Gmsjqf8HOYqyP49YE6m0hmTRVigOxTibMXi3DK+ZcEtkL2xrtZyPGV59JktdLHUQIYKs40uaiwCnL2AbaOWOBsZ+9B9iJ3DyFfjmYoKnS5IG+WjgrDpnFqAcFyCOVsYT+lIx+FmIuc+1AYUlABtdtiw1ZvPZFgQjfhZDedoG7z0UnlhG/vIffbtgxUyKs6EtJMZZ0iaL/G3wgA+Ba8QB/FuALYwHw/Gt9T/mnkv/gQ+k9jVFw0/0TYJX2tYUK2hWes8dKLOViRedcSbnvGrb/7ojY59jxpCXoD4mQwL+plUEkk8R/4c0XXFhSW6DhRByPiMhN1n/m3mHvyJLteIAaXOa2ICEOIjYZANaSlWSBh1wQzzIWHfJ+fHyDmYIdSmh8xQodoWYGzQPLSpguxR0cZetGo/2s6DaR2GAdGQKnADVLXW8w1fYThSDS2gNpRPpnShvkYt2XONfeA+ALnv6nYbdM4ZCYoE5jAW4UHCsQj8/6WxIpuENdm2whPSiwF66ZyEkSoUAj2Ijz3Vil3gtXGBWvY8ZpvIQ6/J0wL7WZVUkeqKM8/Qsol6Ac0ZLyshZyDvMv8+BXJ0Are8PqEqFEoqlkcwwDMudX3DQ47LpDkV6EjgPvhgGt9N+2loHq1QYxXxhDawp1oxWxkZwlhq1hwykkLFpjruE+OnZe9t6zjwaEw74BkPwEy1/Qd5W0I1keZphZB+hjvsLwWe5oWFwbmJAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Angular pullrequest\"\n        title=\"Angular pullrequest\"\n        src=\"/static/c7c9214ed811a39667e4204bae7880cc/f058b/angular%20pr.png\"\n        srcset=\"/static/c7c9214ed811a39667e4204bae7880cc/f058b/angular%20pr.png 630w\"\n        sizes=\"(max-width: 630px) 100vw, 630px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n      />\n    </span></p>\n<p><strong>*</strong>Let’s view an individual pr:<strong>*</strong></p>\n<p>I’m going with the first pull request <code>#38899</code>. Through gh cmd $ gh pr view <code>38899</code>.</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"9\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">refactor(compiler): simplify visitor logic </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> attributes</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">Draft • atscott wants to merge 1 commit into master from testrefactor</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">Labels: cla: yes, comp: compiler, state: WIP, target: patch</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">Milestone: needsTriage</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">The logic </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> computing identifiers, specifically </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> bound attributes can  </span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  be simplified by using the value span of the binding rather than the </span><span class=\"mtk11\">source</span><span class=\"mtk1\"> span.</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">View this pull request on GitHub: https://github.com/angular/angular/pull/38899</span></span></code></pre>\n<p>*<strong>*Repository 🤖**</strong></p>\n<p>Let’s execute the <code>$gh repo --help</code> see what commands are available</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"10\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">Work with GitHub repositories</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">USAGE</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  gh repo &lt;command&gt; [flags]</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">CORE COMMANDS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  clone:      Clone a repository locally</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  create:     Create a new repository</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  fork:       Create a fork of a repository</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  view:       View a repository</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">INHERITED FLAGS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  --help   Show </span><span class=\"mtk11\">help</span><span class=\"mtk1\"> </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> </span><span class=\"mtk11\">command</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">ARGUMENTS</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  A repository can be supplied as an argument </span><span class=\"mtk15\">in</span><span class=\"mtk1\"> any of the following formats:</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  - </span><span class=\"mtk8\">&quot;OWNER/REPO&quot;</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  - by URL, e.g. </span><span class=\"mtk8\">&quot;https://github.com/OWNER/REPO&quot;</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">EXAMPLES</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh repo create</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh repo clone cli/cli</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  $ gh repo view --web</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">LEARN MORE</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  Use </span><span class=\"mtk8\">&#39;gh &lt;command&gt; &lt;subcommand&gt; --help&#39;</span><span class=\"mtk1\"> </span><span class=\"mtk15\">for</span><span class=\"mtk1\"> more information about a command.</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">  Read the manual at https://cli.github.com/manual</span></span></code></pre>\n<p>It is better to clone a repository using the gh command than with the git command. I have done this above. Only through gh cmd, I have cloned angular repo.</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"11\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">$ gh repo clone angular/angular</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">$ gh repo fork</span></span>\n<span class=\"grvsc-line\"><span class=\"mtk1\">- Forking angular/angular...</span></span></code></pre>\n<p>Start functioning. You should create a new PR after this (<code>$gh pr create</code>)! It’s sort of remarkable that all of that element is now available in the terminal!😍</p>\n<p>*<strong>*Gist 🐱‍🚀**</strong></p>\n<p>It is now simple to create a gist on GitHub from the terminal using the CLI cmd.</p>\n<pre class=\"grvsc-container dark-default-dark\" data-language=\"bash\" data-index=\"12\"><code class=\"grvsc-code\"><span class=\"grvsc-line\"><span class=\"mtk1\">gh gist create &lt; file &gt;</span></span></code></pre>\n<p>*<strong>*Conclusion🙀**</strong></p>\n<p><a href=\"https://cli.github.com/\">Git CLI's</a> primary objective is to \"minimize context switching\" by allowing you to continue inside your terminal/console, rather than opening your browser to access <a href=\"https://github.com/\">GitHub</a>. For additional functionality and knowledge on using the current resources, you may link to the <a href=\"https://cli.github.com/manual/\">manual</a>.</p>\n<style class=\"grvsc-styles\">\n  .grvsc-container {\n    overflow: auto;\n    -webkit-overflow-scrolling: touch;\n    padding-top: 1rem;\n    padding-top: var(--grvsc-padding-top, var(--grvsc-padding-v, 1rem));\n    padding-bottom: 1rem;\n    padding-bottom: var(--grvsc-padding-bottom, var(--grvsc-padding-v, 1rem));\n    border-radius: 8px;\n    border-radius: var(--grvsc-border-radius, 8px);\n    font-feature-settings: normal;\n  }\n  \n  .grvsc-code {\n    display: inline-block;\n    min-width: 100%;\n  }\n  \n  .grvsc-line {\n    display: inline-block;\n    box-sizing: border-box;\n    width: 100%;\n    padding-left: 1.5rem;\n    padding-left: var(--grvsc-padding-left, var(--grvsc-padding-h, 1.5rem));\n    padding-right: 1.5rem;\n    padding-right: var(--grvsc-padding-right, var(--grvsc-padding-h, 1.5rem));\n  }\n  \n  .grvsc-line-highlighted {\n    background-color: var(--grvsc-line-highlighted-background-color, transparent);\n    box-shadow: inset var(--grvsc-line-highlighted-border-width, 4px) 0 0 0 var(--grvsc-line-highlighted-border-color, transparent);\n  }\n  \n  .dark-default-dark {\n    background-color: #1E1E1E;\n    color: #D4D4D4;\n  }\n  .dark-default-dark .mtk1 { color: #D4D4D4; }\n  .dark-default-dark .mtk11 { color: #DCDCAA; }\n  .dark-default-dark .mtk15 { color: #C586C0; }\n  .dark-default-dark .mtk8 { color: #CE9178; }\n</style>","frontmatter":{"date":"October 05, 2020","updated_date":null,"title":"GitHub CLI Tool ⚒","tags":["Cloud","GIT","Version control"],"coverImage":{"childImageSharp":{"fluid":{"aspectRatio":1.5384615384615385,"src":"/static/83b212a04295c14c34c4446afe679467/d8212/GitHub%20CLI%20Tool.png","srcSet":"/static/83b212a04295c14c34c4446afe679467/69585/GitHub%20CLI%20Tool.png 200w,\n/static/83b212a04295c14c34c4446afe679467/497c6/GitHub%20CLI%20Tool.png 400w,\n/static/83b212a04295c14c34c4446afe679467/d8212/GitHub%20CLI%20Tool.png 757w","sizes":"(max-width: 757px) 100vw, 757px"}}},"author":{"id":"Saravanan Vijayamuthu","github":"SaravananVijayamuthu","avatar":null}}}}]}},"pageContext":{"tag":"Version control"}},"staticQueryHashes":["1171199041","1384082988","2100481360","23180105","528864852"]}