I am having an issue with pushing to my repository using Git on Github. The error is attached here
What I want to know now is that do I have to create the files as a placeholder on Github before pushing my codes to it. I am really confused.
Thanks.
I am having an issue with pushing to my repository using Git on Github. The error is attached here
What I want to know now is that do I have to create the files as a placeholder on Github before pushing my codes to it. I am really confused.
Thanks.
Your error message clearly states that you have pull the changes locally to your machine by using the command git pull then you can push
PS. if you pull the changes and the push right away you will be pushing the same thing that you pull so you will be prompt with a error.
You need to commit what you have done before merging.
So commit and then pull.
git add foo.js
git commit foo.js -m "commit"
git pull
git push
No, you don't need to create the files as a placeholder on Github before pushing your code to it.