Source Control says it needs to push. Git says up to date
Dacius12
Posts: 1 New member
We have a Git Repo that houses our SQL database source control. We use the RedGate tool to check in all of our objects and manage drift between our Git and Database. it is a very active repo with hundreds of changes a month. Every once in a while we will experience an issue with RedGate SSC program where is says I have a Push to make. When I click the Push Button is says.
<div>Unable to push. This may be because a reference that you are trying to update on the remote contains commits that are not present locally. Try to pull from the Get Latest tab and try again.</div><div>To https://<ForkedversionofdatabaseRepo>.git</div><div> ! [rejected] master -> master (non-fast-forward)</div><div>error: failed to push some refs to '<Repo Location>'</div><div>hint: Updates were rejected because the tip of your current branch is behind</div><div>hint: its remote counterpart. Integrate the remote changes (e.g.</div><div>hint: 'git pull ...') before pushing again.</div><div>hint: See the 'Note about fast-forwards' in 'git push --help' for details.</div>
When I run a git status in command prompt it says the repo is up to date. Working tree is clean. When I pull and push from fork and upstream it says no changes. In git, it says my fork is up to date with the master.
I have tried dropping the local and re-cloning
I have tried deleting my fork and re-forking.
I have tried dropping the local and re-cloning
I have tried deleting my fork and re-forking.
Tagged:
Answers