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

            Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

            Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices

            How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page