Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What should you do when you type git and mistakenly press gti

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

What should you do when you type git and mistakenly press gti? for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

One of the common mistakes developers and managers make is to type the git command but accidentally type gti. Some have set an alias, alias gti=git, to prevent errors, but you may miss the Volkswagen Golf GTI on the screen.

Install GTI software to get Volkswagen Golf car

Gti is nothing more than a git runner based on input errors. It drives on the terminal. After enabling gti through add-apt-repository, type the following apt command or apt-get command on Debian/Ubuntu Linux

Sudo add-apt-repository ppa:mamantoha/gtisudo apt-get updatesudo apt-get install gti

The Fedora Linux user types the following dnf command:

Sudo dnf install gti

Execute the following brew command on the macOS Unix desktop:

Brew install gti

Run the following pkg_add command on OpenBSD:

Doas pkg_add-v gti

The FreeBSD user enters the following pkg command:

Sudo pkg_add-v gti

The Arch Linux user enters the following pacman command:

Sudo pacman-S gti-git

Instructions for source code installation

The first step is to install the C language compiler, so I won't repeat it any more.

Next, use the git command to get the source code

Git clone https://github.com/rwos/gti.git is being cloned into 'gti'...remote: Enumerating objects: 187, done.remote: Total 187 (delta 0), reused 0 (delta 0), pack-reused 187 receiver: 100% (187 KiB), 39.56 KiB | 12.00 KiB/s, complete. Processing delta: 100% (81 Universe 81), complete.

Start compiling and installing:

Cd gtimakesudo make install

Basically, compile and install a stupid git initiator. Inspired by sl.

As you may have guessed, gti is designed to capture accidental typos "gti" rather than "git". It shows the animation of the car driving by, and then starts git. Any parameters or parameters given to gti are passed to the actual git binaries. The car image comes from the appearance of the old Volkswagen Golf GTI.

Linux/Unix environment variables supported by gti

Set GIT so that the gti command complies with the $GIT environment variable. If GIT is set, its value will be used to start git at the end of the animation instead of searching for git in PATH:

Export GIT=/opt/bin/gitgti clone foo

The default speed is too fast. Do you want to control the speed of gti command animation? Yes, set GTI_SPEED (default is 1000):

GTI_SPEED=2000 gti push.. GTI_SPEED=2000 gti pull.. GTI_SPEED=4000 gti clone..

There, gti is a stupid git starter, basically inspired by the sl command that displays the train. However, gti displays animations (jeeps or cars in shell) to correct users who accidentally enter gti instead of git for fun and benefit. If you like this interesting desktop application, give it a try.

This is the answer to the question about what to do when you type git and mistakenly press gti. I hope the above content can be of some help to everyone. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report