Open-source News

Why I love Tig for visualizing my Git workflows

opensource.com - Tue, 07/05/2022 - 15:00
Why I love Tig for visualizing my Git workflows Sumantro Mukherjee Tue, 07/05/2022 - 03:00 Register or Login to like Register or Login to like

If you find navigating your Git repositories frustratingly complex, have I got the tool for you. Meet Tig.

Tig is an ncurses-based text-mode interface for Git that allows you to browse changes in a Git repository. It also acts as a pager for the output of various Git commands. I use this tool to give me a good idea of what’s been changed in which commit by whom, the latest commit merged, and so much more. Try it for yourself, starting with this brief tutorial.

Installing Tig

On Linux, you can install Tig using your package manager. For instance, on Fedora and Mageia:

$ sudo dnf install tig

On Debian, Linux Mint, Elementary, Pop_OS, and other Debian-based distributions:

$ sud apt install tig

On macOS, use MacPorts or Homebrew. Tig’s complete installation guide can be found in the Tig Manual.

Using Tig

Tig provides an interactive view of common Git output. For instance, with Git you can view all refs with the command git show-ref:

$ git show-ref
98b108... refs/heads/master
6dae95... refs/remotes/origin/1010-internal-share-partition-format-reflexion
84e1f8... refs/remotes/origin/1015-add-libretro-openlara
e62c7c... refs/remotes/origin/1016-add-support-for-retroarch-project-cd
1c29a8... refs/remotes/origin/1066-add-libretro-mess
ffd3f53... refs/remotes/origin/1155-automatically-generate-assets-for-external-installers
ab4d14... refs/remotes/origin/1160-release-on-bare-metal-servers
28baa9... refs/remotes/origin/1180-ipega-pg-9118
8dff1d... refs/remotes/origin/1181-add-libretro-dosbox-core-s
81a7fe... refs/remotes/origin/1189-allow-manual-build-on-master
[...]

With Tig, you can get that information and much more in a scrollable list, plus keyboard shortcuts to open additional views with details about each ref.

Image by:

(Sumantro Mukherjee, CC BY-SA 4.0)

More on Git What is Git? Git cheat sheet Markdown cheat sheet New Git articles Pager mode

Tig enters pager mode when input is provided to stdin (standard input). When the show subcommand is specified and the --stdin option is given, stdin is assumed to be a list of commit IDs, which is forwarded to git-show:

$ git rev-list --author=sumantrom HEAD | tig show –stdinLog and diff views

When you're in Tig's log view, you can press the d key on your keyboard to display diffs. This displays the files changed in the commit and the lines that were removed and added.

Interactive Git data

Tig is an excellent addition to Git. It makes it easy to review your Git repository by encouraging you to explore the logs without having to construct long and sometimes complex queries.

Add Tig to your Git toolkit today!

Tig is an excellent tool for reviewing your Git repository by encouraging you to explore the logs without having to construct long and sometimes complex queries.

Image by:

opensource.com

Git What to read next How to use Tig to browse Git logs 6 best practices for managing Git repos This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

Monitorix – A Linux System and Network Monitoring Tool

Tecmint - Tue, 07/05/2022 - 14:36
The post Monitorix – A Linux System and Network Monitoring Tool first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Monitorix is an open-source, free, and most powerful lightweight tool designed to monitor system and network resources in Linux. It regularly collects system and network data and displays the information in graphs using its

The post Monitorix – A Linux System and Network Monitoring Tool first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Open, Extract and Create RAR Files in Linux

Tecmint - Tue, 07/05/2022 - 12:32
The post How to Open, Extract and Create RAR Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

RAR is the most popular tool for creating and extracting compressed archive (.rar) files. When we download an archive file from the web, we required a rar tool to extract them. RAR is available

The post How to Open, Extract and Create RAR Files in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

AMD Rembrandt SoC Support For Coreboot In Place - Based Off Existing "Sabrina" Code

Phoronix - Tue, 07/05/2022 - 02:55
Today's Coreboot code now has AMD Rembrandt SoC support by splitting it out from the Sabrina SoC support that has been in the works the past several months for this open-source firmware project...

Linux 5.20 To Fix Some TUXEDO/Clevo Laptops With Touchpad/Keyboard Issues After Suspend

Phoronix - Mon, 07/04/2022 - 21:14
A patch from TUXEDO Computers that is now queued into the input subsystem's "next" branch for Linux 5.20 adds a number of quirks to fix several Clevo / TUXEDO laptops from touchpad and keyboard issues after suspending the system...

Ubuntu's Chromium Snap Finally Seeing Progress On Supporting VA-API GPU Acceleration

Phoronix - Mon, 07/04/2022 - 19:40
Those making use of Ubuntu's Chromium Snap for running the Google open-source web browser have been without VA-API support for GPU-based video acceleration within this sandboxed app. Fortunately, it looks like that will soon be crossed off the list for ensuring Ubuntu users can enjoy VA-API acceleration for lowering CPU resources and better power efficiency on Intel graphics and other Mesa Gallium3D drivers supporting VA-API...

Pages