{"id":12795,"date":"2019-03-28T20:35:28","date_gmt":"2019-03-28T20:35:28","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12795"},"modified":"2019-03-28T20:35:28","modified_gmt":"2019-03-28T20:35:28","slug":"grv-a-tool-for-viewing-git-repositories-in-linux-terminal","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/grv-a-tool-for-viewing-git-repositories-in-linux-terminal\/","title":{"rendered":"GRV \u2013 A Tool for Viewing Git Repositories in Linux Terminal"},"content":{"rendered":"<p><strong>GRV<\/strong>\u00a0(<strong>Git Repository Viewer<\/strong>) is a free open-source and simple terminal-based interface for viewing git repositories. It provides a way to view and search refs, commits, branches and diffs using\u00a0<a href=\"https:\/\/www.tecmint.com\/reasons-to-learn-vi-vim-editor-in-linux\/\" target=\"_blank\" rel=\"noopener\">Vi\/Vim<\/a>\u00a0like key bindings. It\u2019s behavior and style can be easily customized through a configuration file.<\/p>\n<h4>GRV Features:<\/h4>\n<ul>\n<li>Provides a query language to filter refs and commits.<\/li>\n<li>Supports Vi\/Vim-like key-bindings by default, and key bindings can be customized.<\/li>\n<li>Captures changes to the repository by monitoring the filesystem allowing the UI to be updated automatically.<\/li>\n<li>It is organized as tabs and splits; allows for creating custom tabs and splits using any combination of views.<\/li>\n<li>Supports customizable themes.<\/li>\n<li>Offers mouse support.<\/li>\n<\/ul>\n<h4>Requirements:<\/h4>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/install-go-in-linux\/\" target=\"_blank\" rel=\"noopener\">Go version 1.5<\/a>\u00a0or later should be installed on your system.<\/li>\n<li>libncursesw, libreadline and libcurl.<\/li>\n<li>cmake (to build libgit2).<\/li>\n<\/ol>\n<h3>How to Install GRV in Linux Systems<\/h3>\n<p>First install required dependencies using the default package manager as shown.<\/p>\n<pre>$ sudo apt install libncurses5-dev libncursesw5-dev libreadline-dev cmake\t<strong>#Debian\/Ubuntu<\/strong> \r\n# yum install ncurses-devel readline-devel cmake \t\t                <strong>#RHEL\/CentOS<\/strong>\r\n# dnf install ncurses-devel readline-devel cmake\t\t                <strong>#Fedora<\/strong> \r\n<\/pre>\n<p>Then install\u00a0<strong>GRV<\/strong>, the following commands will install\u00a0<strong>GRV<\/strong>\u00a0to\u00a0<strong>$GOPATH\/bin<\/strong>. A static\u00a0<strong>libgit2<\/strong>\u00a0will be built and included in\u00a0<strong>GRV<\/strong>\u00a0when built this way.<\/p>\n<pre>$ go get -d github.com\/rgburke\/grv\/cmd\/grv \r\n$ cd $GOPATH\/src\/github.com\/rgburke\/grv\r\n$ make install\r\n<\/pre>\n<p>After successfully installing\u00a0<strong>GRV<\/strong>, you can view\u00a0<strong>refs<\/strong>,\u00a0<strong>commits<\/strong>,\u00a0<strong>branches<\/strong>\u00a0and\u00a0<strong>diffs<\/strong>\u00a0of your repository using the syntax that follows.<\/p>\n<pre>$ $GOBIN\/grv -repoFilePath \/path\/to\/repository\/<\/pre>\n<p>In this example, we will view refs, commits, branches and diffs of repository file in\u00a0<strong>~\/bin\/shellscripts<\/strong>.<\/p>\n<pre>$ $GOBIN\/grv -repoFilePath ~\/bin\/shellscripts \r\n<\/pre>\n<div id=\"attachment_28809\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/View-Git-Refs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28809\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/View-Git-Refs.png\" sizes=\"auto, (max-width: 1234px) 100vw, 1234px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/View-Git-Refs.png 1234w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/View-Git-Refs-768x411.png 768w\" alt=\"View Git Refs\" width=\"1234\" height=\"660\" aria-describedby=\"caption-attachment-28809\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28809\" class=\"wp-caption-text\">View Git Refs<\/p>\n<\/div>\n<div id=\"attachment_28810\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-single-diff-entry.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28810\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-single-diff-entry.png\" sizes=\"auto, (max-width: 1054px) 100vw, 1054px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-single-diff-entry.png 1054w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-single-diff-entry-768x481.png 768w\" alt=\"View Git Diff\" width=\"1054\" height=\"660\" aria-describedby=\"caption-attachment-28810\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28810\" class=\"wp-caption-text\">View Git Diff<\/p>\n<\/div>\n<div id=\"attachment_28811\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-list-of-commits.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28811\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-list-of-commits.png\" sizes=\"auto, (max-width: 1054px) 100vw, 1054px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-list-of-commits.png 1054w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/view-a-list-of-commits-768x481.png 768w\" alt=\"View Git Commits\" width=\"1054\" height=\"660\" aria-describedby=\"caption-attachment-28811\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28811\" class=\"wp-caption-text\">View Git Commits<\/p>\n<\/div>\n<p>You can find additional usage options from the GRV help page.<\/p>\n<pre>$ $GOBIN\/grv -h\r\n<\/pre>\n<p><strong>GRV Github repository<\/strong>:\u00a0<a href=\"https:\/\/github.com\/rgburke\/grv\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/rgburke\/grv<\/a><\/p>\n<p>In this article, we have explained how to install and use GRV, a terminal based UI for viewing git repositories. Use the feedback form below to share your thoughts about it or ask any questions.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/grv-view-git-repositories-in-linux-terminal\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GRV\u00a0(Git Repository Viewer) is a free open-source and simple terminal-based interface for viewing git repositories. It provides a way to view and search refs, commits, branches and diffs using\u00a0Vi\/Vim\u00a0like key bindings. It\u2019s behavior and style can be easily customized through a configuration file. GRV Features: Provides a query language to filter refs and commits. Supports &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/grv-a-tool-for-viewing-git-repositories-in-linux-terminal\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GRV \u2013 A Tool for Viewing Git Repositories in Linux Terminal&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12795","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12795"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12795\/revisions"}],"predecessor-version":[{"id":12796,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12795\/revisions\/12796"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}