1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00
SpaceVim/bundle/git.vim
2024-12-21 19:53:38 +08:00
..
autoload feat(git): lua complete for git-fetch 2024-12-17 19:13:47 +08:00
doc feat(git): lua complete for git-fetch 2024-12-17 19:13:47 +08:00
lua/git feat(git): update git-tag completion 2024-12-21 19:53:38 +08:00
plugin feat(git): add vim cmdline parser function 2024-03-03 22:40:18 +08:00
syntax feat(git): rewrite :Git rebase in lua 2024-03-23 23:18:05 +08:00
test chore(bundle): only load default rtp 2023-07-02 17:41:11 +08:00
.gitignore Improve git.vim (#4033) 2021-01-02 18:15:08 +08:00
addon-info.json feat(bookmarks): add new bookmark plugin 2024-03-29 00:02:30 +08:00
LICENSE Improve git.vim (#4033) 2021-01-02 18:15:08 +08:00
README.md docs(git): update readme of git.vim 2024-12-09 20:59:42 +08:00

git.vim

git.vim is a plugin to use git command in vim and neovim.

GPLv3 License

Install

  1. Using git.vim in SpaceVim:
[[layers]]
  name = 'git'
  1. Using git.vim without SpaceVim:
Plug 'wsdjeg/git.vim'

Usage

  • :Git add %: stage current file.
  • :Git add .: stage all files
  • :Git commit: edit commit message
  • :Git push: push to remote
  • :Git pull: pull updates from 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
  • :Git rebase: rebase git commit
  • :Git diff: view git-diff info

Screenshot

:Git status

git-status

:Git commit

git-commit

:Git push

git-push

:Git push completion

git-push-complete

:Git diff

git-diff

:Git log

git-log

Feedback

The development of this plugin is in SpaceVim/bundle/git.vim directory.

If you encounter any bugs or have suggestions, please file an issue in the issue tracker