Fil Fil - 1 year ago 149
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?

Answer Source

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)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download