1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:20:06 +08:00
SpaceVim/docs/layers/git.md

41 lines
939 B
Markdown
Raw Normal View History

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
To use this configuration layer, add following snippet to your custom configuration file (`SPC f v d`).
2017-09-28 23:31:50 +08:00
```toml
[[layers]]
name = "git"
```
2017-09-28 23:31:50 +08:00
## Key bindings
| 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 |