-
Star
(101)
You must be signed in to star a gist -
Fork
(7)
You must be signed in to fork a gist
-
-
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 -- |
saved my day! Thank you :-)
thanks and worked in mac too. type ":wq" and enter.
Thanks a lot!! You saved my day and many more days in the future :))
Appreciate it !!!
Amazing!
Hitting ESC then typing ":wq" worked for me on windows 10 command prompt.
Thank you so much for the tips!!
Thank you!!! it worked great in mac
Thanks
Thanks a lot for this solution!
@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
Muito obrigado, já passei muita raiva com esse vacilo da falta de flag no commit
i use windows 10, i try it but nothing happen, what am i suppose to type after :wp
Thank you, I fill the blank lines with random words i m not sure if its correct, but it works (MacOS
Thank you! Always wondered about this!
thanks bro!
what should I write after :wq? excuse my ignorance
what should I write after :wq? excuse my ignorance
You can just click enter after write that
Thank you for this gist.
TYSM! I'm still really new to all things Git and was in full panic mode until I found this!!!
An absolute legend. Thank you!
thank you thank you thank youuuu
I was in panic, thank you so much
Thank you!
ty bro !
thank you! i was going round and round!
Thanks, you saved my life!
Much appreciation for getting this out there!
Life Saver! Thank you!
Thanks so much! 🙏
Thank you man, really appreciate it