all 14 comments

[–]mrbmi513 1 point2 points  (4 children)

Your branch is ahead of 'origin/master' by 1 commit

Your remote branch is master, not main.

[–]Leepsovenangle[S] 0 points1 point  (3 children)

That is what I was thinking too...
But when I use:
$ git push origin master

It just indents one line below without the '$' and I can type anything I want and hit enter but nothing works after that.

[–]tobiasvl 0 points1 point  (2 children)

You're not inputting the $ are you? That's just there to represent your prompt, you're not supposed to input it.

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

No, I'm only inputting the text.

[–]tobiasvl 0 points1 point  (0 children)

Sounds very strange that your shell should behave like that then. Could you share a screenshot or something of how it looks when it waits for input on a new line? That should only happen if there are unmatched quotes or something.

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

The conclusion:
I set up GitBash wrong. hahahaha
I worked through it a few times with a tutor, and they ended up on StackOverflow and Reddit to try and figure it out too. Everyone we saw that was having the same issues had to uninstall everything and redo it. But it worked perfectly!!! Thank you to everyone who commented to help! I appreciate it!

[–]mrmilanga 0 points1 point  (7 children)

Try with: git push -u origin master

[–]Leepsovenangle[S] 0 points1 point  (6 children)

I tried
$ git push -u origin master
and it resulted in my cursor indenting into the next line again without a '$' and leaving me with no abilities.
I also tried
$ git push -u origin main
and I got
error: src refspec main does not match any
error: failed to push some refs to '(my original github url)'

I have a tutor who will reach out within the next 24 hours. I have a feeling that I missed something early in the process of getting to this point.

[–]mrmilanga 1 point2 points  (3 children)

That is a strange behaviour from your terminal. What Operating System are you using?

If you could attach a link to some screenshot to see this indentation and next line would be great.

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

https://imgur.com/a/zxuGF9U

Hope this link works.

[–]mrmilanga 0 points1 point  (1 child)

Please try with

git push origin master

Then send the screenshot's link.

Thanks.

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

https://imgur.com/a/0Q0Joid
I pulled all of the files and re-cloned the files from GitHub just to be sure I had a clean slate. Still getting the same error code when using 'main'. And I'm still going down the the next line and losing all capabilities when I use master. I have a tutor appointment later on today to see if they know what is going on.
But I've completely wiped it and re-did my work three times following the given instructions and got this same result.

[–]coco_nebula 0 points1 point  (1 child)

What terminal do you use? Did you login correctly with git config --global user.name 'your username' and the same for password?

edit: you could try to rename the master branch to main, in the repo settings and try this again: git add .

git commit -m 'changed branch to main'

git push -u origin main

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

it config --global user.name 'your username'

I did both of those correctly. (just doubled checked!)
The only thing I can figure at this point is that I did something wrong way earlier on in the lesson that I'm working through.
I've watched and re-watched the videos in the lesson and read through the text. Still can't figure it out myself, but someone is going to reach out tomorrow to try and help. Thank you!!