Last active
October 23, 2019 21:25
-
-
Save kjaymiller/8662fe6706833ef288b780dbbb68a772 to your computer and use it in GitHub Desktop.
Git Commands for NeoVim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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