0
I have created an empty repository on Bitbucket server (run in a Docker container and exposed by NGINX - also run via Docker container) for a Project in a network isolated machine. While setting it up I have come accross the following error:
![remote rejected] master -> master (shallow update not allowed) error: failed to push some refs to
I have the repo and code locally and followed the procedures bellow:
git config --global user.name "<user>"
git config --global user.email "<user.email>"
git clone <url bitbucket repo path>
cd project-code-folder
git init
git add --all
git commit -m "initial commit"
git remote add origin <url bitbucket repo path>
git push -u origin master
The error happens when I execute the last instruction, so I am not able to import my local code into the Bitbucket repo. How can I solve this?
See Remote rejected (shallow update not allowed) after changing Git remote URL with your workflow you're cloning a repository and possibly trying to create another git within it or you're trying to push a repo that didn't exist before.
– Seth – 2019-01-28T12:23:57.940