oren — 5/26/2022, 8:36:09 PM

somehow I just cannot get git to work on the command line. I can push just fine, but when I try to commit -a it’ll either give me a message like this:


# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
...

or it’ll say:

On branch master
Changes not staged for commit:
...

and it never actually commits, I have to use vscode’s version control gui to commit. Anyone have any solutions?

♥ 1 ↩ 0 💬 6 comments

comments

codelikecraze:

You need to STAGE YOUR COMMITS.

If all of them are related, then make one big stage of all your changes.

5/26/2022, 9:44:32 PM
oren:

this works thanks!

5/27/2022, 4:20:03 PM
lily:

don’t use -a and remember to actually stage things

git add file to add the change you’ve done to it e.g. permission change, delete, date, content, etc

5/26/2022, 9:10:04 PM
oren:

thanks

5/27/2022, 4:20:11 PM
non-biased-news:

message*

5/26/2022, 9:05:46 PM
non-biased-news:

Maybe give a commit massage?

5/26/2022, 9:05:39 PM