Right now I'm using fugitive to manage almost everything git related, but I can't find a good workflow to quickly visualize and switch between available branches.I can do :Git checkout <branch-name>, the problem is that it autocompletes both file names and branches, and I'd prefer a branch list.
Easiest way to switch git branches
command line;autocompletion;git;plugin fugitive
To culminate the answers here are the ways to accomplish this:Vanilla Terminal VimPress CTRL-Z in normal mode will drop you back in to the shell and suspend Vim. After executing your git checkout [branchname] type the fg command to return to the suspended Vim which will also force Vim to refresh.Vanilla GUI VimSome gvim implementations will have :shell support which will open a shell inside of Vim using a dumb terminal. However it may be easier to just type::!git checkout [branchname]This will execute the command without having to open a new shell prompt. (This option is also usable in the terminal Vim).vim-fugitivevim-fugitive is a plugin that allows you to use Git from within Vim. The command would be::Git checkout [branchname]vim-merginalvim-merginal is a plugin that uses vim-fugitive and provides a user friendly-ish interface.Type :Merginal.Move cursor to the branch you want.Type cc to check out that branch.