-2

I am working on a branch called sofian/issue_533. I simply want to add the changes to the branch on git and somehow I can't.

Here is a picture of what git is showing ...

Thanks for the help !

enter image description here

Andy
  • 49,085
  • 60
  • 166
  • 233
Sox -
  • 592
  • 1
  • 9
  • 28
  • 2
    Possible duplicate of [Cannot push to GitHub - keeps saying need merge](https://stackoverflow.com/questions/10298291/cannot-push-to-github-keeps-saying-need-merge) – cassandrad Sep 20 '18 at 16:11

1 Answers1

3

You need to pull from the remote source first, your local branch is not up-to-date. Look in the logs, git tries to hint at it.

And also, beware of git push without any parameters, depending on your config, it might try to push all your local branches to their remote counterparts, which can be very unwanted. git push origin HEAD is safer.

Romain Valeri
  • 19,645
  • 3
  • 36
  • 61
  • Did not need to pull anything as Git said, the problem was the git push command. Thanks ! – Sox - Sep 20 '18 at 17:00