1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:20:04 +08:00
SpaceVim/bundle/git.vim/README.md
2023-07-05 11:50:23 +08:00

60 lines
1.5 KiB
Markdown
Vendored

# git.vim
[![](https://spacevim.org/img/build-with-SpaceVim.svg)](https://spacevim.org)
Use git in SpaceVim
This plugin adds extensive support for [git](https://git-scm.com/).
<!-- vim-markdown-toc GFM -->
- [usage](#usage)
- [Screenshot](#screenshot)
- [Feedback](#feedback)
<!-- vim-markdown-toc -->
## usage
- `:Git add %`: stage current file.
- `:Git add .`: stage all files
- `:Git commit`: edit commit message
- `:Git push`: push to remote
- `:Git fetch`: fetch remotes
- `:Git checkout`: checkout branches
- `:Git log %`: view git log of current file
- `:Git config`: list all git config
- `:Git reflog`: manage reflog information
- `:Git branch`: list, create, or delete branches
## Screenshot
**`:Git status`**
![git-status](https://img.spacevim.org/70063320-85efb600-1622-11ea-9aad-88d8b5b0f6d6.png)
**`:Git commit`**
![git-commit](https://img.spacevim.org/70335089-96519c00-1881-11ea-9c96-84c32566a002.png)
**`:Git push`**
![git-push](https://img.spacevim.org/70335203-d0bb3900-1881-11ea-8bf3-85b248c20dae.png)
**`:Git push`** completion
![git-push-complete](https://img.spacevim.org/70384670-7de69c00-19bd-11ea-91fe-9e8ced9775db.gif)
**`:Git diff`**
![git-diff](https://img.spacevim.org/70369625-7c52a080-18f7-11ea-9ee9-a1ba499b3d1f.png)
**`:Git log`**
![git-log](https://img.spacevim.org/70444048-39015900-1ad4-11ea-9522-1711c0c67098.png)
## Feedback
The development of this plugin is in [`SpaceVim/bundle/git.vim`](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/git.vim) directory.