I created a project on mean stack (mean.io) using
mean init
This created a git repo which I want to push into my own private git repo on Bitbucket. I did:
git remote add origin [email protected]:my_login/reponame.git
git push -u origin --all
I'm getting the following error
! [remote rejected] master -> master (shallow update not allowed)
Any advice on how I can push my local repo into brand new remote repo on Bitbucket?
The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo. It's the counterpart to git fetch , but whereas fetching imports commits to local branches, pushing exports commits to remote branches.
At the top of your repository on GitHub.com's Quick Setup page, click to copy the remote repository URL. In the Command prompt, add the URL for the remote repository where your local repository will be pushed. Push the changes in your local repository to GitHub.com.
Push a new Git branch to a remote repoClone the remote Git repo locally. Create a new branch with the branch, switch or checkout commands. Perform a git push with the –set-upstream option to set the remote repo for the new branch. Continue to perform Git commits locally on the new branch.
git fetch --unshallow upstream
Then
git push -u origin --all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With