Hello.
I have my GitLab project remote repo with already 40 commits in it. And now when I’m trying to push the new version of my code it says “The local repository is out of date.” How can I deal with it? mac os sierra, xcode 8.
Many thanks!
Did you pull/rebasd your repository?
Thanks for your reply.
Pull crashes with “The remote repository could not be found.” message. Any ideas?
Are you using the right url for git e.g.
git@git.*********:/projectname/project.git
http://git.********/projectname/project.git
are the ones i can use for our git server
Yes, of course. I copy this link directly from my remote repo. Force push also works fine
A force push works, thats weird.
Are working alone on that Repo? what happens if you do
git fetch origin
git diff origin
But I think, thats a problem I’m not very helpfull.
Normaly that error means that somebody pushed something that you don’t have in your local repo.
Are you using consle/git bash/… for git?
Yes, that’s only my project.
git fetch origin returns:
warning: no common commits
remote: Counting objects: 88, done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 88 (delta 30), reused 79 (delta 28)
Unpacking objects: 100% (88/88), done.
From https://gitlab.com/*****/project
- [new branch] master -> *****/master
git diff origin returns nothing
I’m using git exactly from Xcode 8.2.1 and terminal.
Anyway many thanks for your replies. Have a nice day!