Git-vim provides:
Plugin files for calling git functions from inside Vim
Syntax files for git displays
- :GitAdd <file>
git-add <file> or current file if not specified.
- :GitRm <file>
git-rm <file> or current file if not specified.
- :GitCommit <args>
git-commit.
- :GitStatus
Show git-status of current file or repository.
- :GitLog
Show git-log of current file or repository.
- :GitCheckout <args>
git-checkout. Completes git commits.
- :GitDiff <args>
git-diff. Completes git commits.
- :GitPull <args>
git-pull.
- :GitPullRebase
git-pull –rebase.
- :GitPush <args>
git-push. Defaults to +git push origin <current-branch>+.
- :GitCatFile <args>
git-cat-file.
- :GitBlame
git-blame. Shows who is responsible for a change
- :Git <args>
Does any git command.
- :GitVimDiff <rev>
Enter vimdiff with another revision of the current file. Revision defaults to HEAD if not specified.
- :GitVimDiffMerge
Experimental. Call this command on unmerged file to enter vimdiff mode.
- :GitVimDiffMergeDone
Call this command after merging.
- <Leader>gd
:GitDiff
- <Leader>gD
:GitDiff –cached
- <Leader>gs
:GitStatus
- <Leader>gl
:GitLog
- <Leader>ga
:GitAdd
- <Leader>gA
:GitAdd <cfile>
- <Leader>gr
:GitRm
- <Leader>gR
:GitRm <cfile>
- <Leader>gc
:GitCommit
- <Leader>gb
:GitBlame
The MIT License