0

I made changes to my project src folder. Here is how the path looked: src/program/Main.java How it is now: src/**course**/program/Main.java.

When I try to commit changes to my remote repository, git shows me the following error:

[rejected] master -> dev (non-fast-forward) error: failed to push some refs to 'git@git...:user/Project'

How can the changes in the path be applied to the remote repository?

vardius
  • 6,326
  • 8
  • 52
  • 97

1 Answers1

0

First, perform a git pull origin YOUR_BRANCH_NAME prior to pushing. This should simply retrieve the remote repo updates and merge them with your local work.

Ousmane D.
  • 54,915
  • 8
  • 91
  • 126