7

GRV - Tool for Viewing Git Repositories in Linux Terminal - GeeksforGeeks

 11 months ago
source link: https://www.geeksforgeeks.org/grv-tool-for-viewing-git-repositories-in-linux-terminal/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Git Repository Viewer or GRV is a cross-platform, free, and open-source GIT GUI client. It provides a terminal-based interface to search and view refs, commits, branches, tags, and diffs in a git repository. The behavior and style can be customized through a configuration file. GRV is written in the Go programming language and is available under GNU v3 public license.

Features of GRV tool:

  • Vim-like key bindings
  • Custom themes
  • Detailed commit graph
  • A query language to filter commits and refs.
  • Support for cursor
  • Data is organized as tabs and splits.

Installing GRV tool on Linux System

Step 1: The latest version of GRV is available in the form of a Linux binary file on https://github.com/rgburke/grv/releases. Click on the Linux binary file to download or you can also use wget.

$ wget -O grv https://github.com/rgburke/grv/releases/download/v0.3.2/grv_v0.3.2_linux64

z1.png
z2.png

Note: Replace v0.3.2 with the latest version available.

Step 2: Usechmod commandto give executable privileges to the grv file.

$ sudo u+x ./grv
z3.png

Step 3: Now run the following command to add an alias for grv executable to your .bashrc/.zshrc conf file.

$ echo "alias grv='~/grv'" >> ~/.bashrc
z7.png

Step 4: Save the changes to .bashrc/.zshrc by running

$ source ~/.bashrc
z8.png

Step 5: Finally, use grv command to view refs, commits, branches, and diffs of the required git repository.

$ grv -repoFilePath /path/to/repo
z9.png

Usage of GRV tool on Linux

Use gt and gT commands to navigate between views.

z10.png

In the below screenshot, the Status section is been displayed, which describes the current status of the repository.

z11.png

Use <tab> to navigate between different tabs.

z12.png

“Origin” is a shorthand name for the remote repository that a project was originally cloned from.

z13.png

The below screenshot describes the member’s information and their activities on the repository.

z14.png

Specific member information is been displayed in the below screenshot.

z15.png

Some extra information about the repository is been displayed in the below tab.

z16.png

We can use :q to quit from the tool or the editor.

z17.png

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK