Note: This feature is available in telescope - https://github.com/nvim-telescope/telescope.nvim#git-pickers
[DISCONTINUED] Switch branches with telescope.nvim.
Make sure you have installed telescope.nvim
Plug 'the-codingguy/telescope-checkout'
-- Switch branch
require('telescope_checkout.init').checkout()
nnoremap <Leader>gc :lua require'telescope_checkout.init'.checkout{}<CR>
This is currently WIP