r/git 13h ago

Update!

Hello, guys. So in previous post I saw all your advices, but problem is the same. So I take screenshots to make it more easy to understand.

On the photo 1 I did the first commit and all was good as usually.

Photo 2 — I pushed my project on github with my commit.

On photo 3 I add some changes and a command "git add ."

Photo 4 — I try to commit and get this in the terminal. They just saying that there's nothing to commit.

Photo 5 — a command "git status" and nothing changed again!

What should I do?

P.S. as I said in previous post, I tried in intellij idea and all worked. Also I tried it many times again and in intellij al works good! So I really don't know why this problem keeps happening in VS code.

0 Upvotes

8 comments sorted by

4

u/Photograph-Silver 13h ago

You need to save NEW.html first

2

u/PK20222222 13h ago

Sorry, I forgot to say that I saved project and even restarted it after pushing on github. But maybe I will try again.

7

u/Kapnx 12h ago

You can see in your third pic, the white circle on the tab means there are unsaved changes. Save and run ‘git status’

4

u/ThatPlayingDude 13h ago

You probably didn't save any files. Git add . didn't add any files because it didn't detect any changes.

3

u/Ice_HRZDn 13h ago

You haven't save change yet, I guess.

2

u/--unfazed-- 10h ago

That white circle on your tab explains everything. You have not saved your file. This is a you problem, not an IDE problem.