1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-26 09:00:57 +02:00
lazygit/README.md

119 lines
4.2 KiB
Markdown
Raw Normal View History

2018-08-06 07:42:41 +02:00
# lazygit [![Go Report Card](https://goreportcard.com/badge/github.com/jesseduffield/lazygit)](https://goreportcard.com/report/github.com/jesseduffield/lazygit)
2018-08-05 03:40:04 +02:00
A simple terminal UI for git commands, written in Go with the [gocui](https://github.com/jroimartin/gocui "gocui") library.
2018-06-10 04:49:12 +02:00
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!
2018-06-09 11:30:59 +02:00
2018-08-05 06:13:21 +02:00
2018-06-10 04:11:40 +02:00
![Gif](https://image.ibb.co/mmeXho/optimisedgif.gif)
2018-06-09 11:30:59 +02:00
* [Installation](https://github.com/jesseduffield/lazygit#installation)
* [Usage](https://github.com/jesseduffield/lazygit#usage),
[Keybindings](https://github.com/jesseduffield/lazygit/blob/master/docs/Keybindings.md)
* [Cool Features](https://github.com/jesseduffield/lazygit#cool-features)
* [Contributing](https://github.com/jesseduffield/lazygit#contributing)
* [Video Tutorial](https://www.youtube.com/watch?v=VDXvbHZYeKY)
* [Twitch Stream](https://www.twitch.tv/jesseduffield)
2018-08-11 01:43:22 +02:00
2018-06-10 04:49:12 +02:00
## Installation
2018-08-08 00:49:37 +02:00
2018-08-09 02:46:27 +02:00
### Homebrew
2018-08-09 02:46:57 +02:00
```sh
2018-08-09 02:46:27 +02:00
brew tap jesseduffield/lazygit
brew install lazygit
2018-08-09 02:46:57 +02:00
```
2018-08-09 02:46:27 +02:00
### Ubuntu
Packages for Ubuntu 16.04, 18.04 and 18.10 are available via [Launchpad PPA](https://launchpad.net/~lazygit-team).
They are built daily, straight from master branch.
```sh
sudo add-apt-repository ppa:lazygit-team/daily
sudo apt-get update
sudo apt-get install lazygit
```
2018-08-09 23:17:38 +02:00
### Void Linux
Packages for Void Linux are available in the distro repo
They follow upstream latest releases
```sh
sudo xbps-install -S lazygit
```
### Arch Linux
Packages for Arch Linux are available via AUR (Arch User Repository).
There are two packages. The stable one which is built with the latest release
and the git version which builds from the most recent commit.
* Stable: https://aur.archlinux.org/packages/lazygit/
* Development: https://aur.archlinux.org/packages/lazygit-git/
Instruction of how to install AUR content can be found here:
https://wiki.archlinux.org/index.php/Arch_User_Repository
2018-08-09 02:48:57 +02:00
### Binary Release (Windows/Linux/OSX)
You can download a binary release [here](https://github.com/jesseduffield/lazygit/releases).
2018-08-09 02:48:57 +02:00
### Go
2018-08-09 03:07:41 +02:00
```sh
go get github.com/jesseduffield/lazygit
```
2018-08-09 02:48:57 +02:00
Please note:
If you get an error claiming that lazygit cannot be found or is not defined, you
may need to add `~/go/bin` to your $PATH (MacOS/Linux), or `%HOME%\go\bin`
(Windows). Not to be mistaked for `C:\Go\bin` (which is for Go's own binaries,
not apps like Lazygit).
2018-08-08 00:49:37 +02:00
## Usage
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).
2018-08-09 02:21:45 +02:00
* Basic video tutorial [here](https://www.youtube.com/watch?v=VDXvbHZYeKY).
* List of keybindings
[here](https://github.com/jesseduffield/lazygit/blob/master/docs/Keybindings.md).
2018-08-08 00:49:37 +02:00
2018-06-10 04:49:12 +02:00
## 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
2018-06-10 04:49:12 +02:00
### Resolving merge conflicts
2018-06-10 04:27:22 +02:00
![Gif](https://image.ibb.co/iyxUTT/shortermerging.gif)
2018-06-10 04:49:12 +02:00
2018-06-10 04:52:55 +02:00
### Viewing commit diffs
![Viewing Commit Diffs](https://image.ibb.co/gPD02o/capture.png)
2018-08-06 16:07:42 +02:00
## Milestones
2018-08-09 08:07:25 +02:00
- [x] Easy Installation (homebrew, release binaries)
2018-08-06 16:08:54 +02:00
- [ ] Configurable Keybindings
- [ ] Configurable Color Themes
- [ ] Spawning Subprocesses (help needed - have a look at https://github.com/jesseduffield/lazygit/pull/18)
2018-08-08 00:49:37 +02:00
- [ ] Maintainability
2018-08-07 07:50:56 +02:00
- [ ] Performance
2018-08-06 16:08:54 +02:00
- [ ] i18n
2018-08-06 16:07:42 +02:00
## Contributing
We love your input! Please check out the [contributing guide](CONTRIBUTING.md).
2018-08-06 16:07:42 +02:00
2018-06-10 04:49:12 +02:00
## Work in progress
This is still a work in progress so there's still bugs to iron out and as this
is my first project in Go the code could no doubt use an increase in quality,
but I'll be improving on it whenever I find the time. If you have any feedback
feel free to [raise an issue](https://github.com/jesseduffield/lazygit/issues)/[submit a PR](https://github.com/jesseduffield/lazygit/pulls).
2018-08-11 01:43:22 +02:00
## Social
If you want to see what I (Jesse) am up to in terms of development, follow me on
[twitter](https://twitter.com/DuffieldJesse) or watch me program on
[twitch](https://www.twitch.tv/jesseduffield).