Qnap [ LazyGit ] [ 0.29.0] A simple terminal UI for git commands

QoolBox

Représentant QNAP
2 Janvier 2014
10 559
163
153
49
France
www.qnap.com
qpkg_icon_80.gif


Source : https://github.com/jesseduffield/lazygit

Download :

https://www.qnapclub.eu/fr/qpkg/621

Note :

- lazygit added to NAS $PATH on QPKG start
- Call lazygit in your terminal inside a git repository. If you want, you can also add an alias for this with echo "alias lg='lazygit'" >> ~/.zshrc (or whichever rc file you're using).

About :

Are YOU tired of typing every git command directly into the terminal, but you're too stubborn to use Sourcetree because you'll never forgive Atlassian for making Jira? This is the app for you!

Basic video tutorial here.
List of keybindings here.
Cool features
Adding files easily
Resolving merge conflicts
Easily check out recent branches
Scroll through logs/diffs of branches/commits/stash
Quick pushing/pulling
Squash down and rename commits

lazygit-example.gif
 
updated

Code:
f2df77a Fix path for Linux config file
9f4433d allow opening merge tool
2d8f7d2 better way of scrolling to a merge conflict
a9fbc9e fix merge conflict panel not rendering
70b5c82 update config.md to explain situation with config paths
8d41663 update release notes
 
lazygit 0.28 Release notes

Command Log Panel

115366163-6998ed00-a208-11eb-9f11-faee54dcaa9a.png


Concerned that you have no idea what git commands lazygit is running under the hood? Even I was starting to wonder myself. Well now there's a command log panel which tells you exactly what's going on. Paradoxically, this makes lazygit a valuable resource for learning how to use git on the command line.

The panel is shrunk to a single row when your terminal pane is small enough so that you have some more space. If there's more room it will be a little larger. You can maximise it by clicking it or pressing '@' and switching to it. You can also hide it for the current session through the menu that comes up when you hit '@'.

If you want to hide it permanently you can add the following to your config (which you can edit by pressing 'o' while the status panel is focused):

gui:
showCommandLog: false
You can also change the default size of the panel (in its semi-enlarged form) like so:

gui:
commandLogSize: 10

Random Tip

115366461-b41a6980-a208-11eb-8c4e-a86ff146cbdd.png


Some responses to the above survey mentioned features that would be cool to add... which already existed! So we're seeing how we go with a random tip that is shown in the command log panel when lazygit is opened, providing general tips for using lazygit so that the user can get a little more familiar with the app. If you find this annoying, you can disable it like so:

gui:
showRandomTip: false
Admittedly if the random tip spans several lines and you only have a one-line-high command log, you're gonna need to scroll up. Not too sure how to get around that one.

Ask Question Button

115366336-951bd780-a208-11eb-8b38-451b7505dfe1.png


If you're lost and want to ask a question, any question, you can now click the 'Ask Question' button at the bottom right of the app. It will take you to the discussions page of the lazygit repo.

File sorting

We now bubble tracked files to the top when in flat file mode again. So first you'll see files with merge conflicts, then tracked files, then untracked files.

Bug fixes

when you open a panel for editing text, the cursor now appears at the end, not the start, of the text.
when using an east-asian character encoding, the rendering of frames is no longer broken
 
v0.28.2

Changelog
Code:
44f7fc6 Add global binding to open recent repos
472288c Add user config to change the sort order of tags
3258c24 Better english for Configuring File Editing.
05a23f0 Discard value after END marker
e7c657f Docs for EditCommand.
60468d2 Edit command as user OS config option
e478c25 Handle alternate merge conflict format; add tests
fd38ad8 More generic merge conflict detection
6ccf58c README: deprecate Ubuntu PPA
94b52af Remove config, make default sort order descending
bc044c6 Remove origin prefix when creating local branch based from origin
cb78cf7 Simplify sorting of git tags by using git's functions
f92fcfb cd: remove ppa job
f91adf0 fix lbl scrolling
d502c43 fix tests
0df02da minor changes
f71b23b more explicit
90983aa not importing regexp
6d91661 prevent closure issue
258eedb refactor