I have a git repo with a master that is set up in upstream, and a dev branch which is getting every stream from this master.
I have some commited changes on my dev branch that are useful only for this specific branch and not for the master, and I
my current branch is :
git status
On branch dev
Your branch is ahead of 'master' by 2 commits.
my commits are visible when I do
git diff origin/master..HEAD
my branch is up to date ( and goes through master as it was doing before) :
git pull
From .
* branch master -> FETCH_HEAD
Already up-to-date.
But when I push, I got bashed :
git push origin
To https://my_git.git
! [rejected] dev -> dev (non-fast-forward)
error: failed to push some refs to 'https://my_git.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Any tips would be appreciated, I had a look on several posts like this : git push rejected non-fast-forward or this Git non-fast-forward rejected , but none of them seems to work in my case.
Thanks