Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6683969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:53:02+00:00 2026-05-26T04:53:02+00:00

In Mercurial, I usually do this: hg init hg addremove hg commit -m init

  • 0

In Mercurial, I usually do this:

hg init
hg addremove
hg commit -m "init repo"
hg push https://arezzo:mypassword@bitbucket.org/arezzo/mynewrepo

I tried something similar in git and it didn’t work:

git init .
git add .
git commit -m "init repo"
git push https://arezzo:mypassword@bitbucket.org/arezzo/mynewrepo

The message I get after push is:

Everything up-to-date

Nothing gets pushed to bitbucket.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:53:03+00:00Added an answer on May 26, 2026 at 4:53 am

    When you don’t specify a branch to push when you’re using git push, it by default will only push branches where a branch with the same name exists in the remote repository. In this case, I guess that this is the first time that you’re pushing to this repository, so there is no branch called master yet – thus, git push URL doesn’t push anything.

    Another tip that may be useful is that you usually create a remote as a short name for the repository URL when you’re using git. So, to modify your steps slightly, try the following instead:

    mkdir mynewrepo
    cd mynewrepo
    
    git init
    git add .
    git commit -m "Initial commit"
    git remote add origin https://arezzo:mypassword@bitbucket.org/arezzo/mynewrepo
    git push -u origin master
    

    Then you can use origin in place of the URL. You only need to use the -u option the first time that you push – it just sets up some helpful default config options so that git pull works without additional arguments, for instance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Mercurial's website says about creating a project this way: Create a project and commit
Mercurial supports push-style cloning of repositories to remote hosts, however newly cloned repositories don't
Is there a way to configure Mercurial to allow for empty commit messages? If
With Mercurial, if you try and push and there were commits made to the
My Mercurial server requires https authentication for pulls. How can I cache my authentication
Will Mercurial work on Redhat Linux? I tried, yum install mercurial, with no success.
When I have to commit merges I've done in mercurial, I just do hg
Recently Mercurial has added certificate validation when connecting to HTTPS servers. I'm trying to
I'm seeing that mercurial efficiently compresses the files in repository (repo/.hg/store/data) Does anybody know
Using Mercurial with a private repository hosted at bitbucket. I need to add some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.