Error failed to push some refs to 'origin'

Checklist:

  1. :white_check_mark: : I’ve uncommented the code.
  2. :white_check_mark: : I’ve saved the changes.
  3. :white_check_mark:: I’ve run the git commands: git commit -am “[any message]”, git push origin master

Here’s a screenshot showing the output from running the Git commands:

I set up a repository on GitHub and uploaded the folder with the files, but instead of displaying the contents, it now says “Submodule changes – This submodule has modified changes. Those changes must be committed inside of the submodule before they can be part of the parent repository.”

I appreciate your help!

By default origin is set to ‘codecraffters git repo’.

set your github like this
git remote add github https://github.com/yourusername/codecrafters-git-python.git

and push it like this
git push -u github master

the above will push your master branch to the remote github repo.

you might also want to see the upstream urls using git remote -v

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.