Cannot push changes to github
In the terminal, I've given the following commands:
when i try to push changes using
git push -u origin
, it said I've to enter git push --set-upstream origin master
.
When i did, I got this error
What is stopping me?16 Replies
first guess would be that there's no master branch on the remote server
wdym?
what branches exist on the remote repo?
(and I assume
REMOTE_REPO
is just a stand-in you're using for privacy reasons, right? You're using an actual repo URL?)
also, what is your local branch called?yes
local branch?
(please reply with ping on)
no, that's the remote for our repo ig
it said to give a name for the remote, i gave
origin
now it says I don't have permissions
no permissions means you have to log in probably, at least set your e-mail to something github knows about.
Also, if you want pings for threads you're in, you can click the notification bell and set it to "All Messages". @shirochord
ok
the email is same as my github account
did you follow these steps? https://docs.github.com/en/get-started/quickstart/set-up-git#authenticating-with-github-from-git
GitHub Docs
Set up Git - GitHub Docs
sorry, forgot to @ you @shirochord
ok np :)
i kept this chat open
when i push, it says the repo contents are empty
did you make any commits? @shirochord
ye
it says to publish my branch
what says to do that?
github extension
anyways I've shut down my laptop
I'll open the project tmrw
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Please ask your question in a new thread