3

After I do a git commit, it would prompt me to comment so I can push to bitbucket and normally I press alt+x, then I exit and then git push. But for some reason, it's not letting me exit.

committed new changes to bitbucket

Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit.
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
   new file:   blocks/folder-navigation.block
   new file:   blocks/index-album.block

....

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Rommel Santiago
  • 51
  • 1
  • 1
  • 2
  • This is what I am getting on the bottom of the files.... {-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)} – Rommel Santiago Aug 28 '15 at 02:28
  • 1
    Could it be opening up another editor like vim or ed? Paste a screenshot. – Jacob Wang Aug 28 '15 at 03:34
  • That means your default git editor is [nano](http://www.nano-editor.org/), you can change your [default editor for commit message in git](http://stackoverflow.com/a/2596835/105104) – dvhh Aug 28 '15 at 04:19
  • by the way the `^` char usually mean `ctrl`, meaning that for exiting you would nned to press `ctrl`+`X` – dvhh Aug 28 '15 at 04:21
  • Yup. I think I got it, it was in vim. Pressing zz helped me exit and save. I will try this today. – Rommel Santiago Aug 28 '15 at 15:24
  • Try this http://stackoverflow.com/questions/14046122/github-locks-up-mac-terminal-when-using-pull-command – tommerbomb Apr 10 '17 at 22:54

1 Answers1

12

The editor looks like to be vim according to your descriptions. This console is simply telling you to write some message for the commit you want to make, and it is compulsory as it does.

  • Just type i and you'll go in the -- INTER -- mode, now you can write your comments.

  • After you have done, press esc key in your keyboard and you'll go to command mode. (see on the bottom of the console)

  • Now save changes by writing :w followed by pressing enter key

You can see the screenshot here for your reference

  • You can quit now by writing :q followed by pressing enter key

you can see the screenshot here for your reference

  • Hurray! Now you're back to the main console.
alexander.polomodov
  • 5,396
  • 14
  • 39
  • 46
OM Bharatiya
  • 1,840
  • 14
  • 23