1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:30:04 +08:00
SpaceVim/bundle/git.vim/README.md
2024-07-26 19:29:48 +08:00

1.7 KiB

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 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

: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.