Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+13 votes

I got the error (maybe not exactly an error?) "hint: Waiting for your editor to close the file..." when I tried to commit the code to ignore PDF files. It tries to open my VS code which is the default text editor for my terminal. Any thoughts?

asked in CSC305 Fall 2023 by (1 point)

1 Answer

+4 votes

Did you write a commit message in the VS CODE, save the file, and then close VS CODE, so that git can stop waiting for it?

answered by (508 points)

I used git commit -m "Initial commit" for the lab since there was a deadline but I didn't write the commit message in VS code, so I guess it didn't work even if I closed the text editor.