mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-06 19:29:52 +08:00
64 lines
1.6 KiB
Markdown
64 lines
1.6 KiB
Markdown
|
# git.vim
|
||
|
|
||
|
[](https://spacevim.org)
|
||
|
|
||
|
Use git in SpaceVim
|
||
|
|
||
|
|
||
|
|
||
|
<!-- 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 commit`**
|
||
|
|
||
|

|
||
|
|
||
|
**`:Git push`**
|
||
|
|
||
|

|
||
|
|
||
|
**`:Git push`** completion
|
||
|
|
||
|

|
||
|
|
||
|
**`:Git diff`**
|
||
|
|
||
|

|
||
|
|
||
|
**`:Git log`**
|
||
|
|
||
|

|
||
|
|
||
|
|
||
|
## Feedback
|
||
|
|
||
|
This plugin is based on SpaceVim's API, make sure your SpaceVim is the latest version.
|
||
|
|
||
|
To report bug or request new features about git.vim, please send me email.
|
||
|
|
||
|
wsdjeg@outlook.com
|