Skip to content

Instantly share code, notes, and snippets.

@kjaymiller
Last active October 23, 2019 21:25
Show Gist options
  • Save kjaymiller/8662fe6706833ef288b780dbbb68a772 to your computer and use it in GitHub Desktop.
Save kjaymiller/8662fe6706833ef288b780dbbb68a772 to your computer and use it in GitHub Desktop.
Git Commands for NeoVim
"Git Commands Add these to your neovim configuration
"Run git status (Entire Repo)
cnoremap gs !git status
"Git Diff Commands
"Git Diff of Single File
cnoremap gd<SPACE> !git diff %
"Git Diff of (Entire Repo)
cnoremap gdd !git diff
:command -nargs=* GitStatus !git diff <args>
"Git Commit
cnoremap gc GitCommit
:command -nargs=1 GitCommit !git commit % -m "<args>"
"Git Push
cnoremap gp !git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment