2017-09-28 23:31:50 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim git layer"
|
2017-12-02 23:23:58 +08:00
|
|
|
description: "This layers adds extensive support for git"
|
2017-09-28 23:31:50 +08:00
|
|
|
---
|
|
|
|
|
2018-06-23 14:37:41 +08:00
|
|
|
# [Available Layers](../) >> git
|
2017-09-28 23:31:50 +08:00
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Description](#description)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Key bindings](#key-bindings)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
This layers adds extensive support for [git](http://git-scm.com/).
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2018-05-27 13:05:57 +08:00
|
|
|
To use this configuration layer, add following snippet to your custom configuration file.
|
2017-09-28 23:31:50 +08:00
|
|
|
|
2018-05-27 13:05:57 +08:00
|
|
|
```toml
|
|
|
|
[[layers]]
|
|
|
|
name = "git"
|
|
|
|
```
|
2017-09-28 23:31:50 +08:00
|
|
|
|
|
|
|
## Key bindings
|
|
|
|
|
2018-05-27 13:05:57 +08:00
|
|
|
| Key Binding | Description |
|
|
|
|
| ----------- | ---------------------- |
|
|
|
|
| `SPC g s` | view git status |
|
|
|
|
| `SPC g S` | stage current file |
|
|
|
|
| `SPC g U` | unstage current file |
|
|
|
|
| `SPC g c` | edit git commit |
|
|
|
|
| `SPC g p` | git push |
|
|
|
|
| `SPC g d` | view git diff |
|
|
|
|
| `SPC g A` | stage all files |
|
|
|
|
| `SPC g b` | open git blame windows |
|