Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 1.16 KB

git-vim.wiki

File metadata and controls

63 lines (52 loc) · 1.16 KB

网址: https://github.com/motemen/git-vim

Introduction

Git-vim provides:

    Plugin files for calling git functions from inside Vim
    Syntax files for git displays

Commands

GitAdd <file></file>
    git-add &lt;file&gt;&lt;/file&gt; or current file if not specified. 

GitCommit <args></args>
    git-commit. 

GitStatus
    Show git-status of current file or repository. 

GitLog
    Show git-log of current file or repository. 

GitCheckout <args></args>
    git-checkout. Completes git commits. 

GitDiff <args></args>
    git-diff. Completes git commits. 

GitPull <args></args>
    git-pull. 

GitPullRebase
    git-pull —rebase. 

GitPush <args></args>
    git-push. Defaults to +git push origin &lt;current&#45;branch&gt;&lt;/current&#45;branch&gt;+. 

GitCatFile <args></args>
    git-cat-file. 

Git <args></args>
    Does any git command. 

GitVimDiffMerge
    Experimental. Call this command on unmerged file to enter vimdiff mode. 

GitVimDiffMergeDone
    Call this command after merging. 

Keymaps

gd

    :GitDiff 

gD

    :GitDiff —cached 

gs

    :GitStatus 

gl

    :GitLog 

ga

    :GitAdd 

gA

    :GitAdd &lt;cfile&gt;&lt;/cfile&gt; 

gc

    :GitCommit 

In git-status buffer

    :GitAdd &lt;cfile&gt;&lt;/cfile&gt; 

License

The MIT License