0

I hope someone can help me with this issue. I've been working on this specific project for a while now and only recently have I been getting this issue every time I try to push my changes to the remote branch.

enter image description here

It seems like it needs all other branches to be updated before I can push my latest changes on the current branch.

flobar
  • 111
  • 1
  • 6

2 Answers2

0

this means that on the other branches an update was committed. update your branches and merge if that is needed. when everything is up-to-date then you can post all your changes to the "remote" branch.

quantum apps
  • 808
  • 1
  • 13
  • 22
  • Yes, but my problem is I never had to do something like this before until only recently for some reason. – flobar Nov 17 '17 at 13:07
  • what for program do you use ? console? sourcetree?. if your new to git sourcetree is and GUI of your git repository where you can easily manage your commit,post and merges. – quantum apps Nov 17 '17 at 13:44
0

You are not able to push changes because your remote branch's commit is ahead than what you are trying to push currently from local. If you squashed commits and try to push changes it will reject commits like that. You can do a safe force push to that branch

git push <upstream name> +<branch name>
slashpai
  • 918
  • 6
  • 11