I am trying to start the backend course. I have cloned from your repo. I have reinitialized it once it is in my local environment. When I push changes I get an error "
error: src refspec main does not match any
error: failed to push some refs to ‘GitHub - freeCodeCamp/boilerplate-express: A boilerplate for the freeCodeCamp curriculum.’"
I am not forking, so why is this pushing back to your repo and no mine? The guy you have that teaches this talks about needing to watch a video he did on this first, but there is absolutely no video he provided.
I have renamed the repo cloned in my local folder and reinitialized it, it still can’t be pushed. I have tried stackoverflow solutions such as this and still doesn’t work:
Delete git and re-init.
go to your cloned repo folder rm -rf .git
re-initialize it and then add your remote and do your first push. git init git add . git commit -m "your commit message" git remote add origin git push origin main
Please help resolve this matter. Thank you.
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36
Hi Jessica! Thanks for responding so quickly. Yes, there are a few guys on the fcc channel that give tuts on this but not one has included how to clone this repo successfully or go over the initial setup. I have experience cloning my own empty repos, but not from other people. So is there something I need to do to make it my own repo that i can push and pull from, that is on my local drive. I just looked over your article and think this may be the ticket for now. Thank you!!!
I read your article and it helped get me started. At the end of the article you mentioned needing to clone other repos for similar lessons. This may be obvious but I just want to make sure, does this mean to use the same steps listed in your article or do I have to do something else, like fork? Thank you again. This was super helpful. I think you should be doing the teaching on the videos. Who do I need to write to make that happen?
I would just use those same steps for the challenges.
When it comes to projects, you will have to use something like replit or deploy it somewhere like heroku.
Haha thanks.
I have never really done youtube tutorials before, but perhaps I will think about it