Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mean.io push to git repo

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?

like image 845
Alexey Avatar asked Apr 18 '15 21:04

Alexey


People also ask

What does it mean to push to git?

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.

How do I push to git repo?

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.

How do I push a branch to GitHub repository?

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.


1 Answers

git fetch --unshallow upstream

Then

git push -u origin --all
like image 148
Methuz Kaewsai-kao Avatar answered Nov 15 '22 19:11

Methuz Kaewsai-kao