Back to Spacevim

git.vim

bundle/git.vim/README.md

2.4.02.0 KB
Original Source

git.vim

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

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Install

  1. Using git.vim in SpaceVim:
toml
[[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 commit

:Git push

:Git push completion

:Git diff

: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