Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kenandersen/2042103942473af82dd2 to your computer and use it in GitHub Desktop.
Save kenandersen/2042103942473af82dd2 to your computer and use it in GitHub Desktop.
// Random terminal tip #1
//You'll see this message if you git commit without a message (-m)
// You can get out of it with two steps:
// 1.a. Type a multi-line message to move foward with the commit.
// 1.b. Leave blank to abort the commit.
// 2. Hit "esc" then type ":wq" and hit enter to save your choice. Viola!
# 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 ahead of 'origin/master' by 1 commit.
# (use "git push" to publish your local commits)
#
# Changes to be committed:
# modified: README.md
#
# Untracked files:
# README.sublime-workspace
#
~
~
~
~
~
~
~
~
~
~
-- INSERT --
@JorgeDuranAlcala
Copy link

Thank you man, really appreciate it

@mpoehlmann86
Copy link

saved my day! Thank you :-)

@x-pre
Copy link

x-pre commented Jul 6, 2021

thanks and worked in mac too. type ":wq" and enter.

@meriterenti
Copy link

Thanks a lot!! You saved my day and many more days in the future :))

@DinjerChang
Copy link

Appreciate it !!!

@Brendan-33
Copy link

Amazing!

Hitting ESC then typing ":wq" worked for me on windows 10 command prompt.

@cienyn14
Copy link

Thank you so much for the tips!!

@papoita
Copy link

papoita commented Sep 27, 2021

Thank you!!! it worked great in mac

@nikhilrally
Copy link

Thanks

@Fietsbantje
Copy link

Thanks a lot for this solution!

@smit-fazz
Copy link

@yatinm1 I ran into the issue this weekend at a Hackathon and I have a Mac. Here is the solution for a Mac:

hit "esc" and then write :wq to write then quit

thank you so much

@G7-blacktail
Copy link

Muito obrigado, já passei muita raiva com esse vacilo da falta de flag no commit

@sammydavid215
Copy link

i use windows 10, i try it but nothing happen, what am i suppose to type after :wp

@LucyLeng
Copy link

LucyLeng commented Nov 6, 2022

Thank you, I fill the blank lines with random words i m not sure if its correct, but it works (MacOS

@ericerodgers
Copy link

Thank you! Always wondered about this!

@puanabidah
Copy link

thanks bro!

@javiarriagag
Copy link

what should I write after :wq? excuse my ignorance

@raras-area
Copy link

what should I write after :wq? excuse my ignorance

You can just click enter after write that

@AudreyLin
Copy link

Thank you for this gist.

@TremMT
Copy link

TremMT commented Mar 26, 2023

TYSM! I'm still really new to all things Git and was in full panic mode until I found this!!!

@samuyoon
Copy link

samuyoon commented Apr 9, 2023

An absolute legend. Thank you!

@vzpippa
Copy link

vzpippa commented Apr 17, 2023

thank you thank you thank youuuu

@Marcio-py
Copy link

I was in panic, thank you so much

@TetianaPeleshko
Copy link

Thank you!

@Perito009
Copy link

ty bro !

@cadz94
Copy link

cadz94 commented Sep 4, 2023

thank you! i was going round and round!

@TRTrain
Copy link

TRTrain commented Oct 19, 2023

Thanks, you saved my life!

@mandurah00
Copy link

Much appreciation for getting this out there!

@TatyCat
Copy link

TatyCat commented Jan 10, 2024

Life Saver! Thank you!

@jazxbx
Copy link

jazxbx commented Jan 11, 2024

Thanks so much! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment