Git Push

I created my repository and try to link my local files to github but I get an error message after using git remote and git push.

I copied the url from github and paste it in the terminal. I also made sure that the folder “excursion” is my pwd.

see attachments.



Hi @bdarboe,

Did you run git init in the directory before adding the origin and pushing the code?

The problem could also be that your local version of the code isn’t up to date with the GitHub repository, and you need to pull the changes down before you do anything: