If you want to change default git’s editor.
git config --global core.editor "vim"
Change email and name
git config --global user.name "name"
git config --global user.email "email"
Let say you did some change in master branches and you want to move this change to another branch. It can happen at least it happened to me. Here is the solution
Create a branch any name. example test
git checkout test
git stash apply
It has been taken from here