Refactor git-edit
Refactor _git-edit