Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kenandersen/2042103942473af82dd2 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Thank you man, really appreciate it

@mpoehlmann86

Copy link
Copy Markdown

saved my day! Thank you :-)

@x-pre

x-pre commented Jul 6, 2021

Copy link
Copy Markdown

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

@meriterenti

Copy link
Copy Markdown

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

@DinjerChang

Copy link
Copy Markdown

Appreciate it !!!

@BrendanSluke

Copy link
Copy Markdown

Amazing!

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

@cienyn14

Copy link
Copy Markdown

Thank you so much for the tips!!

@papoita

papoita commented Sep 27, 2021

Copy link
Copy Markdown

Thank you!!! it worked great in mac

@nikhilrally

Copy link
Copy Markdown

Thanks

@Fietsbantje

Copy link
Copy Markdown

Thanks a lot for this solution!

@smit-fazz

Copy link
Copy Markdown

@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
Copy Markdown

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

@sammydavid215

Copy link
Copy Markdown

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

@LucyLeng

LucyLeng commented Nov 6, 2022

Copy link
Copy Markdown

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

@ericerodgers

Copy link
Copy Markdown

Thank you! Always wondered about this!

@puanabidah

Copy link
Copy Markdown

thanks bro!

@javiarriagag

Copy link
Copy Markdown

what should I write after :wq? excuse my ignorance

@raras-area

Copy link
Copy Markdown

what should I write after :wq? excuse my ignorance

You can just click enter after write that

@AudreyLin

Copy link
Copy Markdown

Thank you for this gist.

@TremMT

TremMT commented Mar 26, 2023

Copy link
Copy Markdown

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

@samuyoon

samuyoon commented Apr 9, 2023

Copy link
Copy Markdown

An absolute legend. Thank you!

@vzpippa

vzpippa commented Apr 17, 2023

Copy link
Copy Markdown

thank you thank you thank youuuu

@Marcio-py

Copy link
Copy Markdown

I was in panic, thank you so much

@TetianaPeleshko

Copy link
Copy Markdown

Thank you!

@Perito009

Copy link
Copy Markdown

ty bro !

@cadz94

cadz94 commented Sep 4, 2023

Copy link
Copy Markdown

thank you! i was going round and round!

@TRTrain

TRTrain commented Oct 19, 2023

Copy link
Copy Markdown

Thanks, you saved my life!

@mandurah00

Copy link
Copy Markdown

Much appreciation for getting this out there!

@TatyCat

TatyCat commented Jan 10, 2024

Copy link
Copy Markdown

Life Saver! Thank you!

@jazxbx

jazxbx commented Jan 11, 2024

Copy link
Copy Markdown

Thanks so much! ๐Ÿ™

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