Hello everyone,
i am really a newbie. I am habitual to use Bitbucket with Netlify to an old project.
Until two-three months ago i do this way:
- Create a website on my laptop
- Going to Bitbucket
- Click on "Add repository"
- Click on "I have an existing project"
- It give me some steps to follow, something like:
git remote add origin *******
git push -u origin master
I'll do this way and it all always works fine.
Now something it is changed. I click on "add repository" and i do not have the same option.
I can't add my website to git, it always give me some error like: "faile to push some refs to *** integrate the remote changes before pushing again"
I really don't know what to do :(
Found it!
In case anyone have my same problem: just open a new repository without .gitignore :)
When you create a repository with a .gitignore file, that is the first commit.
So when you use the repo for the first time you will need to do a `git pull` before trying to push.. that caused the "failed to push some refs" error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.