Fil Fil - 1 month ago 5x
Git Question

Tutorial on git using git bash fixing the conflict

I've following a tutorial on git using git bash and came to the point where after typing the git command

git commit
below show up. I'm in windows operating system and I can no longer proceed.

Merge branch 'second-branch'

# Conflicts:
# index.txt
# It looks like you may be committing a merge.
# If this is not correct, please remove the file
# and try again.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# All conflicts fixed but you are still merging.
# Changes to be committed:
# modified: index.txt

anyone can suggest what to do next?


close the editor?

since this editor is vi, which has a modal user interface, it might be a bit unusual for your w32-burned taste-buds.

Here's how you save the file and close it:

  1. press Esc to go into command-mode
  2. type (this will appear in the footer-line of the screen) wq and hit Return (this will write the file and quit the editor)