2021-01-02 18:15:08 +08:00
|
|
|
# git.vim
|
|
|
|
|
|
|
|
[](https://spacevim.org)
|
|
|
|
|
|
|
|
Use git in SpaceVim
|
|
|
|
|
2022-10-29 10:54:42 +08:00
|
|
|
This plugin adds extensive support for [git](https://git-scm.com/).
|
2021-01-02 18:15:08 +08:00
|
|
|
|
|
|
|
<!-- 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`**
|
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|

|
2021-01-02 18:15:08 +08:00
|
|
|
|
|
|
|
**`:Git commit`**
|
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|

|
2021-01-02 18:15:08 +08:00
|
|
|
|
|
|
|
**`:Git push`**
|
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|

|
2021-01-02 18:15:08 +08:00
|
|
|
|
|
|
|
**`:Git push`** completion
|
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|

|
2021-01-02 18:15:08 +08:00
|
|
|
|
|
|
|
**`:Git diff`**
|
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|

|
2021-01-02 18:15:08 +08:00
|
|
|
|
|
|
|
**`:Git log`**
|
|
|
|
|
2023-07-05 11:50:23 +08:00
|
|
|

|
2021-01-02 18:15:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
## Feedback
|
|
|
|
|
2023-04-29 22:29:21 +08:00
|
|
|
The development of this plugin is in [`SpaceVim/bundle/git.vim`](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/git.vim) directory.
|