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-04 19:40:04 -06:00
A simple terminal UI for git commands, written in Go with the [gocui ](https://github.com/jroimartin/gocui "gocui" ) library.
2018-06-10 12:49:12 +10:00
2018-08-06 09:05:16 +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 19:30:59 +10:00
2018-08-05 14:13:21 +10:00
[Tutorial ](https://www.youtube.com/watch?v=VDXvbHZYeKY )
2018-06-10 12:11:40 +10:00
![Gif ](https://image.ibb.co/mmeXho/optimisedgif.gif )
2018-06-09 19:30:59 +10:00
2018-06-10 12:49:12 +10:00
## Installation
2018-07-29 10:30:40 +10:00
In a terminal call this command:
2018-06-10 12:49:12 +10:00
`go get github.com/jesseduffield/lazygit`
2018-08-06 09:05:16 +02:00
(if you don't have Go installed, you can follow the installation guide [here ](https://golang.org/doc/install ).
2018-06-10 12:49:12 +10:00
2018-08-06 09:05:16 +02:00
Then just call `lazygit` in your terminal inside a git repository.
2018-06-10 12:49:12 +10:00
2018-08-06 09:05:16 +02:00
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-06-10 12:49:12 +10:00
2018-08-07 09:34:45 +10:00
Please note:
2018-08-07 17:55:02 +10:00
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)
2018-08-07 09:34:45 +10:00
2018-08-05 20:31:50 +02:00
### Ubuntu
2018-08-07 13:42:39 +02:00
Packages for Ubuntu 16.04 and up are available via Launchpad PPA.
2018-08-05 20:31:50 +02:00
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-06-10 12:49:12 +10:00
## Cool features
- Adding files easily
- Resolving merge conflicts
- Easily check out recent branches
2018-08-06 07:42:41 +02:00
- Scroll through logs/diffs of branches/commits/stash
2018-06-10 12:49:12 +10:00
- Quick pushing/pulling
- Squash down and rename commits
### Resolving merge conflicts
2018-06-10 12:27:22 +10:00
![Gif ](https://image.ibb.co/iyxUTT/shortermerging.gif )
2018-06-10 12:49:12 +10:00
2018-06-10 12:52:55 +10:00
### Viewing commit diffs
![Viewing Commit Diffs ](https://image.ibb.co/gPD02o/capture.png )
2018-08-06 21:35:30 +10:00
## Docs
[Keybindings ](https://github.com/jesseduffield/lazygit/blob/master/docs/Keybindings.md )
2018-08-07 00:07:42 +10:00
## Milestones
2018-08-07 00:08:54 +10:00
- [ ] Easy Installation (homebrew, release binaries)
- [ ] Configurable Keybindings
- [ ] Configurable Color Themes
- [ ] Spawning Subprocesses (help needed - have a look at https://github.com/jesseduffield/lazygit/pull/18)
2018-08-07 15:50:56 +10:00
- [ ] Performance
2018-08-07 00:08:54 +10:00
- [ ] i18n
2018-08-07 00:07:42 +10:00
## Contributing
2018-08-07 14:37:35 +02:00
We love your input! Please check out the [contributing guide ](CONTRIBUTING.md ).
2018-08-07 00:07:42 +10:00
2018-06-10 12:49:12 +10:00
## Work in progress
2018-08-06 09:05:16 +02:00
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 ).