Hi I am using VS Code and I use the terminal setting on there to push onto github. For some reason its giving me this error:
here is the link to the repo: https://github.com/Kazim786/node_work The repo is public, and the master is default as well.
Hi I am using VS Code and I use the terminal setting on there to push onto github. For some reason its giving me this error:
here is the link to the repo: https://github.com/Kazim786/node_work The repo is public, and the master is default as well.
You will have to mention the upstream to which you would like to push the code. In this case since you want to push your code to the master branch and the origin upstream, you can use the command:
git push origin master
Ok let's just give you some resources to follow so that you can get unstuck. I think it's best to provide a list of resources than trying to cover each single step that has been shared in the past in many different places. Hopefully this helps people that are just getting started with their github repos.
Make sure your local is setup properly https://kbroman.org/github_tutorial/pages/first_time.html
How to clone your repo so that it works properly with your ssh git user setup on #1 https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository#cloning-a-repository-using-the-command-line
Add your changes and push. Follow #4 to deal with branching which is what workflows due.
git add .
git commit -m "<comment>"
git push origin master
The push can be to whatever your remote branch is so follow the below to sources to get a better understanding of the workflows
Here is info on commits from github itself https://docs.github.com/en/github/using-git/pushing-commits-to-a-remote-repository