Normally for git, an editor opens when you pull. This is due to the fact that you are merging changes from the remote to the local branch.
When you pull, git determines whether to merge the local branch with the remote branch. If it is necessary for the merger, it will do it and give you the opportunity to write your own message to fix the merge. At this point, you can just close the editor, and git will complete the process.
Basically, all you have to do is close the editor , and you would have done everything.
Essentially, git does the following:
source share