Struggling with git, cannot push to new remote repositoryHow to clone all remote branches in Git?How can I add an empty directory to a Git repository?Reset local repository branch to be just like remote repository HEADMove the most recent commit(s) to a new branch with GitHow do I check out a remote Git branch?How do I delete a Git branch both locally and remotely?Undo a Git merge that hasn't been pushed yetHow to change the URI (URL) for a remote Git repository?How do I push a new local branch to a remote Git repository and track it too?How to revert a Git repository to a previous commit

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Can a Gentile theist be saved?

Could solar power be utilized and substitute coal in the 19th century?

Teaching indefinite integrals that require special-casing

How can I raise concerns with a new DM about XP splitting?

Stereotypical names

How will losing mobility of one hand affect my career as a programmer?

How can a jailer prevent the Forge Cleric's Artisan's Blessing from being used?

What was required to accept "troll"?

Female=gender counterpart?

How to deal with or prevent idle in the test team?

Would it be legal for a US State to ban exports of a natural resource?

Giant Toughroad SLR 2 for 200 miles in two days, will it make it?

Can I rely on these GitHub repository files?

How can I successfully establish a nationwide combat training program for a large country?

How did Monica know how to operate Carol's "designer"?

Who must act to prevent Brexit on March 29th?

Should a half Jewish man be discouraged from marrying a Jewess?

Adding empty element to declared container without declaring type of element

Books on the History of math research at European universities

Is exact Kanji stroke length important?

What is the opposite of 'gravitas'?

Proof of Lemma: Every integer can be written as a product of primes

No idea how to draw this using tikz



Struggling with git, cannot push to new remote repository


How to clone all remote branches in Git?How can I add an empty directory to a Git repository?Reset local repository branch to be just like remote repository HEADMove the most recent commit(s) to a new branch with GitHow do I check out a remote Git branch?How do I delete a Git branch both locally and remotely?Undo a Git merge that hasn't been pushed yetHow to change the URI (URL) for a remote Git repository?How do I push a new local branch to a remote Git repository and track it too?How to revert a Git repository to a previous commit













9















Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.



So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:



$ git clone https://[me]@bitbucket.org/[me]/[my_project].git


I create a new file (index.html) locally, add and commit:



$ git add index.html 
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html


Committed successfully.



$ git push
Password:
Everything up-to-date


I enter my password aaaaaand... Everything up-to-date... It doesn't push. I just want to push straight to the remote trunk from my local trunk.



I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.










share|improve this question
























  • Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?

    – Alexey Morozov
    Oct 26 '11 at 20:25












  • Updated question with command line dumps so that you can see what's going on.

    – igneosaur
    Oct 26 '11 at 20:36















9















Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.



So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:



$ git clone https://[me]@bitbucket.org/[me]/[my_project].git


I create a new file (index.html) locally, add and commit:



$ git add index.html 
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html


Committed successfully.



$ git push
Password:
Everything up-to-date


I enter my password aaaaaand... Everything up-to-date... It doesn't push. I just want to push straight to the remote trunk from my local trunk.



I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.










share|improve this question
























  • Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?

    – Alexey Morozov
    Oct 26 '11 at 20:25












  • Updated question with command line dumps so that you can see what's going on.

    – igneosaur
    Oct 26 '11 at 20:36













9












9








9


2






Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.



So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:



$ git clone https://[me]@bitbucket.org/[me]/[my_project].git


I create a new file (index.html) locally, add and commit:



$ git add index.html 
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html


Committed successfully.



$ git push
Password:
Everything up-to-date


I enter my password aaaaaand... Everything up-to-date... It doesn't push. I just want to push straight to the remote trunk from my local trunk.



I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.










share|improve this question
















Ok, hopefully this should be easy for you. I'm new to git, BitBucket and somewhat new to version control too, I'm going to be missing something obvious to you.



So here's what I've done: I've installed git on my machine and set my globals. Set up a new repo on BitBucket. Then:



$ git clone https://[me]@bitbucket.org/[me]/[my_project].git


I create a new file (index.html) locally, add and commit:



$ git add index.html 
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html


Committed successfully.



$ git push
Password:
Everything up-to-date


I enter my password aaaaaand... Everything up-to-date... It doesn't push. I just want to push straight to the remote trunk from my local trunk.



I'm sorry if this is really obvious but I'm so new to everything I can't seem to find any info, I was just working through the 'BitBucket 101' steps. Cheers.







git version-control






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 8:22







igneosaur

















asked Oct 26 '11 at 20:18









igneosaurigneosaur

2,19822237




2,19822237












  • Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?

    – Alexey Morozov
    Oct 26 '11 at 20:25












  • Updated question with command line dumps so that you can see what's going on.

    – igneosaur
    Oct 26 '11 at 20:36

















  • Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?

    – Alexey Morozov
    Oct 26 '11 at 20:25












  • Updated question with command line dumps so that you can see what's going on.

    – igneosaur
    Oct 26 '11 at 20:36
















Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?

– Alexey Morozov
Oct 26 '11 at 20:25






Please provide system log from creating a new file to "Everything is up to date". Did you check your bitbucket repo from the site? There is no index.html file?

– Alexey Morozov
Oct 26 '11 at 20:25














Updated question with command line dumps so that you can see what's going on.

– igneosaur
Oct 26 '11 at 20:36





Updated question with command line dumps so that you can see what's going on.

– igneosaur
Oct 26 '11 at 20:36












2 Answers
2






active

oldest

votes


















16














You will have to do:



git push origin master


Change origin if you have a different remote.



Change master if you have different branch.






share|improve this answer























  • That's it! Thank you mate, the guide did not mention this.

    – igneosaur
    Oct 26 '11 at 23:11


















1














I am not sure it is bitbucket.org or GIT's issue.



After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.



'$git push -v ' would be helpful to find issue. It prints out detail information.






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7908381%2fstruggling-with-git-cannot-push-to-new-remote-repository%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    16














    You will have to do:



    git push origin master


    Change origin if you have a different remote.



    Change master if you have different branch.






    share|improve this answer























    • That's it! Thank you mate, the guide did not mention this.

      – igneosaur
      Oct 26 '11 at 23:11















    16














    You will have to do:



    git push origin master


    Change origin if you have a different remote.



    Change master if you have different branch.






    share|improve this answer























    • That's it! Thank you mate, the guide did not mention this.

      – igneosaur
      Oct 26 '11 at 23:11













    16












    16








    16







    You will have to do:



    git push origin master


    Change origin if you have a different remote.



    Change master if you have different branch.






    share|improve this answer













    You will have to do:



    git push origin master


    Change origin if you have a different remote.



    Change master if you have different branch.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 26 '11 at 20:26









    manojldsmanojlds

    217k46380366




    217k46380366












    • That's it! Thank you mate, the guide did not mention this.

      – igneosaur
      Oct 26 '11 at 23:11

















    • That's it! Thank you mate, the guide did not mention this.

      – igneosaur
      Oct 26 '11 at 23:11
















    That's it! Thank you mate, the guide did not mention this.

    – igneosaur
    Oct 26 '11 at 23:11





    That's it! Thank you mate, the guide did not mention this.

    – igneosaur
    Oct 26 '11 at 23:11













    1














    I am not sure it is bitbucket.org or GIT's issue.



    After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.



    '$git push -v ' would be helpful to find issue. It prints out detail information.






    share|improve this answer



























      1














      I am not sure it is bitbucket.org or GIT's issue.



      After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.



      '$git push -v ' would be helpful to find issue. It prints out detail information.






      share|improve this answer

























        1












        1








        1







        I am not sure it is bitbucket.org or GIT's issue.



        After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.



        '$git push -v ' would be helpful to find issue. It prints out detail information.






        share|improve this answer













        I am not sure it is bitbucket.org or GIT's issue.



        After you clone the project. In your local configuration, you have the origin setup to the remote. But no branch information yet. So you have to use '$ git push origin ' to do it once. After that. you can simply use '$ git push'.



        '$git push -v ' would be helpful to find issue. It prints out detail information.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 26 '11 at 22:00









        Enze ChiEnze Chi

        1,063917




        1,063917



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7908381%2fstruggling-with-git-cannot-push-to-new-remote-repository%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme