2021-05-25 07:18:33 +02:00
|
|
|
nnoremap <Leader>ga :Git add %<CR>
|
|
|
|
nnoremap <Leader>gA :Git reset HEAD %<CR>
|
2021-02-01 07:47:23 +01:00
|
|
|
xnoremap <Leader>gb :Git blame<CR>
|
2021-04-15 07:32:48 +02:00
|
|
|
nnoremap <Leader>gb :Git branch -a<CR>
|
|
|
|
nnoremap <Leader>gB :Git branch<SPACE>
|
|
|
|
nnoremap <Leader>gc :Git checkout -b<SPACE>
|
|
|
|
nnoremap <Leader>gC :Git checkout<SPACE>
|
2021-02-01 07:47:23 +01:00
|
|
|
nnoremap <Leader>gd :Ghdiffsplit!<CR>
|
|
|
|
nnoremap <Leader>gD :Gvdiffsplit!<CR>
|
2021-05-18 08:03:32 +02:00
|
|
|
nnoremap <Leader>ge :sp<CR>:Gedit HEAD~:%<Left><Left>
|
2021-06-04 09:28:45 +02:00
|
|
|
nnoremap <Leader>gE :sp<CR>:Gedit :%:p<Left><Left><Left><Left>
|
2021-05-25 07:18:33 +02:00
|
|
|
nnoremap <Leader>gf :Git fetch --all<CR>
|
2021-06-04 09:28:45 +02:00
|
|
|
nnoremap <Leader>gF :Git fetch origin<SPACE>
|
2021-04-21 18:12:31 +02:00
|
|
|
nnoremap <Leader>gl :Git log --stat %<CR>
|
|
|
|
nnoremap <Leader>gL :Git log --stat -n 100<CR>
|
|
|
|
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>
|
|
|
|
xnoremap <Leader>gL :call git#git_log_named_block()<CR>
|
2021-04-15 07:32:48 +02:00
|
|
|
nnoremap <Leader>gM :Git merge origin/
|
2021-04-21 18:12:31 +02:00
|
|
|
nnoremap <Leader>go :call git#git_log_compare()<CR>
|
2021-02-01 07:47:23 +01:00
|
|
|
nnoremap <Leader>gp :Git push<CR>
|
|
|
|
nnoremap <Leader>gP :Git push -u<SPACE>
|
2021-04-15 07:32:48 +02:00
|
|
|
nnoremap <Leader>gr :Git rebase origin/master<CR>
|
|
|
|
nnoremap <Leader>gR :Git rebase origin/main<CR>
|
2021-02-01 07:47:23 +01:00
|
|
|
nnoremap <Leader>g- :Git stash<CR>:e<CR>
|
|
|
|
nnoremap <Leader>g+ :Git stash pop<CR>:e<CR>
|
2021-04-15 07:32:48 +02:00
|
|
|
nnoremap <Leader>gs :Git<CR>
|
|
|
|
nnoremap <Leader>gS :Git<SPACE>
|
2021-02-01 07:47:23 +01:00
|
|
|
nnoremap <Leader>gw :Gwrite<CR>
|
2021-05-14 10:50:31 +02:00
|
|
|
|
|
|
|
augroup custom_fugitive
|
|
|
|
autocmd!
|
|
|
|
autocmd FileType fugitive nnoremap <buffer><silent> q :bwipeout!<CR>
|
2021-05-25 08:09:40 +02:00
|
|
|
autocmd BufReadPost fugitive:// setlocal bufhidden=wipe
|
2021-05-14 10:50:31 +02:00
|
|
|
augroup END
|