Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Push all the code in your local repo to Bitbucket

Farzin Bidokhti December 27, 2019

Hi 

I want push all of my code in local repository to Bitbucket repository, i use these command:

git init

git add .

git commit -m "initial commit of full repository"

git remote add origin <my bitbucket_URL>

git push -u origin --all

I have error in push command, when i run the 'git push -u origin --all' command i get this error: 

'No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date'

What does this error means?

1 answer

1 vote
Sandesh Shetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 27, 2019

@Farzin Bidokhti You can use

git push --mirror origin

Ganesh Babu
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 28, 2019

@Farzin Bidokhti  what it means actually is that the remote repository doesnt have any references as master(branch named master). So either you need to push using the name of the branch or can refer to @Sandesh Shetty reply.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events