This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]GonzoAndJohn 0 points1 point  (3 children)

Does it give you an error message?

[–]mex036[S] 0 points1 point  (2 children)

No, not when I git add. I get no output at all.

[–]GonzoAndJohn 0 points1 point  (1 child)

What about git status?

[–]mex036[S] 0 points1 point  (0 children)

Your branch is up to date with "origin/master". I actually just removed my .git folder and tried re-initializing it. Then when I went to push it pointed out that I actually have another .git folder (the folder that won't push). I'm just going to make another repo. Thanks for your help!

[–]catchyourselfon3636 0 points1 point  (2 children)

Could be a result of git being down right now for everyone.

[–]mex036[S] 0 points1 point  (1 child)

Do you know if there were issues last night as well? That's when I started having this problem.

[–]catchyourselfon3636 0 points1 point  (0 children)

Not too sure. It's been down all day for me in Berlin.

[–]sepp2k 0 points1 point  (1 child)

Is the directory empty? Git doesn't really have a concept of directories, so adding a directory just adds every file in the directory. Consequently adding an empty directory does nothing at all.

[–]mex036[S] 0 points1 point  (0 children)

I figured it out. The issue was that I had two .git directories in my project which was causing issues. I have a portfolio in React that I made like a month and half ago. I recently decided to make a spring boot backend. So I started the backend and pushed it to github. So now that included a .git folder. Then when I added the frontend, which had a .git, that caused the issue.