summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-12 11:05:24 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-12 11:05:24 +1000
commitf97a098c6f3d21f6c9345e2a67a1894ce483d056 (patch)
tree0d427590f2c39ed150dd135b3a9ba18eccb60e75
parent2b3bdc8b8ff2a7391796acc692e994b309a2fa0a (diff)
parent7323e08fdbd2e7288ae40898c1a59cbadcae1b7a (diff)
Merge branch 'master' of https://github.com/jesseduffield/lazygit
-rw-r--r--README.md73
-rw-r--r--docs/Keybindings.md95
2 files changed, 99 insertions, 69 deletions
diff --git a/README.md b/README.md
index 3e5e1bae0..ba1190ce8 100644
--- a/README.md
+++ b/README.md
@@ -2,13 +2,20 @@
A simple terminal UI for git commands, written in Go with the [gocui](https://github.com/jroimartin/gocui "gocui") library.
-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!
+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!
-[Tutorial](https://www.youtube.com/watch?v=VDXvbHZYeKY)
![Gif](https://image.ibb.co/mmeXho/optimisedgif.gif)
-[Twitch Stream](https://www.twitch.tv/jesseduffield)
+ * [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)
## Installation
@@ -19,7 +26,7 @@ brew install lazygit
```
### Ubuntu
-Packages for Ubuntu 16.04, 18.04 and 18.10 are available via Launchpad PPA.
+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.
@@ -29,22 +36,29 @@ sudo apt-get update
sudo apt-get install lazygit
```
+### 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/
+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.
-Development:
-https://aur.archlinux.org/packages/lazygit-git/
+ * 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
### Binary Release (Windows/Linux/OSX)
-You can download a binary release [here](https://github.com/jesseduffield/lazygit/releases)
+You can download a binary release [here](https://github.com/jesseduffield/lazygit/releases).
### Go
```sh
@@ -52,23 +66,27 @@ go get github.com/jesseduffield/lazygit
```
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)
-
+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).
## 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).
-Basic tutorial [Here](https://www.youtube.com/watch?v=VDXvbHZYeKY)
+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).
-[Keybindings](https://github.com/jesseduffield/lazygit/blob/master/docs/Keybindings.md)
+ * 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).
## 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
+ * 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
### Resolving merge conflicts
![Gif](https://image.ibb.co/iyxUTT/shortermerging.gif)
@@ -89,7 +107,12 @@ Basic tutorial [Here](https://www.youtube.com/watch?v=VDXvbHZYeKY)
We love your input! Please check out the [contributing guide](CONTRIBUTING.md).
## 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).
+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).
## 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)
+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).
diff --git a/docs/Keybindings.md b/docs/Keybindings.md
index 46f147201..8ef749277 100644
--- a/docs/Keybindings.md
+++ b/docs/Keybindings.md
@@ -1,59 +1,66 @@
# Keybindings:
## Global:
-
- ← → ↑ ↓/h j k l: navigate
- PgUp/PgDn: scroll diff panel (use fn+up/down on osx)
- q: quit
- p: pull
- shift+P: push
+<pre>
+ <kbd>←</kbd><kbd>→</kbd><kbd>↑</kbd><kbd>↓</kbd>/<kbd>h</kbd><kbd>j</kbd><kbd>k</kbd><kbd>l</kbd>: navigate
+ <kbd>PgUp</kbd>/<kbd>PgDn</kbd>: scroll diff panel (use <kbd>fn</kbd>+<kbd>up</kbd>/<kbd>fn</kbd>+<kbd>down</kbd> on osx)
+ <kbd>q</kbd>: quit
+ <kbd>p</kbd>: pull
+ <kbd>shift</kbd>+<kbd>P</kbd>: push
+</pre>
## Files Panel:
-
- space: toggle staged
- c: commit changes
- shift+C: commit using git editor
- shift+S: stash files
- t: add patched (i.e. pick chunks of a file to add)
- o: open
- e: edit
- s: open in sublime (requires 'subl' command)
- v: open in vscode (requires 'code' command)
- i: add to .gitignore
- d: delete if untracked checkout if tracked (aka go away)
- shift+R: refresh files
+<pre>
+ <kbd>space</kbd>: toggle staged
+ <kbd>c</kbd>: commit changes
+ <kbd>shift</kbd>+<kbd>C</kbd>: commit using git editor
+ <kbd>shift</kbd>+<kbd>S</kbd>: stash files
+ <kbd>t</kbd>: add patched (i.e. pick chunks of a file to add)
+ <kbd>o</kbd>: open
+ <kbd>e</kbd>: edit
+ <kbd>s</kbd>: open in sublime (requires 'subl' command)
+ <kbd>v</kbd>: open in vscode (requires 'code' command)
+ <kbd>i</kbd>: add to .gitignore
+ <kbd>d</kbd>: delete if untracked checkout if tracked (aka go away)
+ <kbd>shift</kbd>+<kbd>R</kbd>: refresh files
+</pre>
## Branches Panel:
-
- space: checkout branch
- f: force checkout branch
- m: merge into currently checked out branch
- c: checkout by name
- n: new branch
- d: delete branch
+<pre>
+ <kbd>space</kbd>: checkout branch
+ <kbd>f</kbd>: force checkout branch
+ <kbd>m</kbd>: merge into currently checked out branch
+ <kbd>c</kbd>: checkout by name
+ <kbd>n</kbd>: new branch
+ <kbd>d</kbd>: delete branch
+</pre>
## Commits Panel:
-
- s: squash down (only available for topmost commit)
- r: rename commit
- g: reset to this commit
+<pre>
+ <kbd>s</kbd>: squash down (only available for topmost commit)
+ <kbd>r</kbd>: rename commit
+ <kbd>g</kbd>: reset to this commit
+</pre>
## Stash Panel:
-
- space: apply
- g: pop
- d: drop
+<pre>
+ <kbd>space</kbd>: apply
+ <kbd>g</kbd>: pop
+ <kbd>d</kbd>: drop
+</pre>
## Popup Panel:
-
- esc: close/cancel
- enter: confirm
- tab: enter newline (if editing)
+<pre>
+ <kbd>esc</kbd>: close/cancel
+ <kbd>enter</kbd>: confirm
+ <kbd>tab</kbd>: enter newline (if editing)
+</pre>
## Resolving Merge Conflicts (Diff Panel):
-
- ← →/h l: navigate conflicts
- ↑ ↓/ k j: select hunk
- space: pick hunk
- b: pick both hunks
- z: undo (only available while still inside diff panel)
+<pre>
+ <kbd>←</kbd><kbd>→</kbd>/<kbd>h</kbd><kbd>l</kbd>: navigate conflicts
+ <kbd>↑</kbd><kbd>↓</kbd>/<kbd>k</kbd><kbd>j</kbd>: select hunk
+ <kbd>space</kbd>: pick hunk
+ <kbd>b</kbd>: pick both hunks
+ <kbd>z</kbd>: undo (only available while still inside diff panel)
+</pre>