Why does Git tell me “No such remote 'origin'” when I try to push to origin?What does 'adding to the index' really mean in Git?GitHub Help - Push Folders to RepositoryHow to clone all remote branches in Git?How do I force “git pull” to overwrite local files?How do you create a remote Git branch?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How 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 can I determine the URL that a local Git repository was originally cloned from?How do you push a tag to a remote repository using Git?How can I reconcile detached HEAD with master/origin?

logo selection for poster presentation

Can the president of the United States be guilty of insider trading?

Can radiation block all wireless communications?

Company stopped paying my salary. What are my options?

What's the difference between "ricochet" and "bounce"?

Expl3 and recent xparse on overleaf: No expl3 loader detected

Can I bring back Planetary Romance as a genre?

How do integrated charger ICs dissipate differences in VCC and the battery voltage?

Cyclic queue using an array in C#

Partition error (Fdisk/Parted)

"I can't place her": How do Russian speakers express this idea colloquially?

Why doesn't Dany protect her dragons better?

The unknown and unexplained in science fiction

Is there an application which does HTTP PUT?

What is the oldest instrument ever?

Whose birthyears are canonically established in the MCU?

Crime rates in a post-scarcity economy

Capturing the entire webpage with WebExecute's CaptureImage

Do oversize pulley wheels increase derailleur capacity?

Why are thrust reversers not used down to taxi speeds?

Is the tensor product (of vector spaces) commutative?

Using mean length and mean weight to calculate mean BMI?

Would the rotation of the starfield from a ring station be too disorienting?

How do I minimise waste on a flight?



Why does Git tell me “No such remote 'origin'” when I try to push to origin?


What does 'adding to the index' really mean in Git?GitHub Help - Push Folders to RepositoryHow to clone all remote branches in Git?How do I force “git pull” to overwrite local files?How do you create a remote Git branch?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How 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 can I determine the URL that a local Git repository was originally cloned from?How do you push a tag to a remote repository using Git?How can I reconcile detached HEAD with master/origin?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








83















I am very new to Git; I only recently created a GitHub account.



I've just tried to push my very first repository (a sample project), but I'm getting the following error:



No such remote 'origin'


I ran the following commands:



git init
git commit -m "first commit"
git remote add origin https://github.com/VijayNew/NewExample.git
git push -u origin master


However, when I ran git commit -m "first commit", I got the following message:



nothing added to commit but untracked files present (use "git add" to track)


So then I tried to set origin, using



git remote set-url origin https://github.com/VijayNew/NewExample.git


But I got the following error:



No such remote 'origin'


What did I do wrong, and what should I do?










share|improve this question
























  • What gives you git-remote -v ?

    – hek2mgl
    Aug 26 '14 at 10:02






  • 1





    between the init and the commit add a "git add ." step. What output does "git remote" (or git remote -v") offer you?

    – user745733
    Aug 26 '14 at 10:03











  • git remote -v Nothing is Display.

    – Vijay
    Aug 26 '14 at 10:05






  • 1





    did you add 'git add' ?????

    – Raja Simon
    Aug 26 '14 at 10:17






  • 2





    When you are starting a new repository, the first REMOTE command should be git remote add origin git@abc.com:mygit, if you run git remote set-url origin git@abc.com:mygit you will get error message: No such remote 'origin'. I run into the same problem, and it took a few minutes before I figure this out. Hope this can help others.

    – Kemin Zhou
    Mar 3 '17 at 0:28

















83















I am very new to Git; I only recently created a GitHub account.



I've just tried to push my very first repository (a sample project), but I'm getting the following error:



No such remote 'origin'


I ran the following commands:



git init
git commit -m "first commit"
git remote add origin https://github.com/VijayNew/NewExample.git
git push -u origin master


However, when I ran git commit -m "first commit", I got the following message:



nothing added to commit but untracked files present (use "git add" to track)


So then I tried to set origin, using



git remote set-url origin https://github.com/VijayNew/NewExample.git


But I got the following error:



No such remote 'origin'


What did I do wrong, and what should I do?










share|improve this question
























  • What gives you git-remote -v ?

    – hek2mgl
    Aug 26 '14 at 10:02






  • 1





    between the init and the commit add a "git add ." step. What output does "git remote" (or git remote -v") offer you?

    – user745733
    Aug 26 '14 at 10:03











  • git remote -v Nothing is Display.

    – Vijay
    Aug 26 '14 at 10:05






  • 1





    did you add 'git add' ?????

    – Raja Simon
    Aug 26 '14 at 10:17






  • 2





    When you are starting a new repository, the first REMOTE command should be git remote add origin git@abc.com:mygit, if you run git remote set-url origin git@abc.com:mygit you will get error message: No such remote 'origin'. I run into the same problem, and it took a few minutes before I figure this out. Hope this can help others.

    – Kemin Zhou
    Mar 3 '17 at 0:28













83












83








83


22






I am very new to Git; I only recently created a GitHub account.



I've just tried to push my very first repository (a sample project), but I'm getting the following error:



No such remote 'origin'


I ran the following commands:



git init
git commit -m "first commit"
git remote add origin https://github.com/VijayNew/NewExample.git
git push -u origin master


However, when I ran git commit -m "first commit", I got the following message:



nothing added to commit but untracked files present (use "git add" to track)


So then I tried to set origin, using



git remote set-url origin https://github.com/VijayNew/NewExample.git


But I got the following error:



No such remote 'origin'


What did I do wrong, and what should I do?










share|improve this question
















I am very new to Git; I only recently created a GitHub account.



I've just tried to push my very first repository (a sample project), but I'm getting the following error:



No such remote 'origin'


I ran the following commands:



git init
git commit -m "first commit"
git remote add origin https://github.com/VijayNew/NewExample.git
git push -u origin master


However, when I ran git commit -m "first commit", I got the following message:



nothing added to commit but untracked files present (use "git add" to track)


So then I tried to set origin, using



git remote set-url origin https://github.com/VijayNew/NewExample.git


But I got the following error:



No such remote 'origin'


What did I do wrong, and what should I do?







git github push git-remote






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 12 at 20:41









jubobs

34.6k18110132




34.6k18110132










asked Aug 26 '14 at 9:59









VijayVijay

96921128




96921128












  • What gives you git-remote -v ?

    – hek2mgl
    Aug 26 '14 at 10:02






  • 1





    between the init and the commit add a "git add ." step. What output does "git remote" (or git remote -v") offer you?

    – user745733
    Aug 26 '14 at 10:03











  • git remote -v Nothing is Display.

    – Vijay
    Aug 26 '14 at 10:05






  • 1





    did you add 'git add' ?????

    – Raja Simon
    Aug 26 '14 at 10:17






  • 2





    When you are starting a new repository, the first REMOTE command should be git remote add origin git@abc.com:mygit, if you run git remote set-url origin git@abc.com:mygit you will get error message: No such remote 'origin'. I run into the same problem, and it took a few minutes before I figure this out. Hope this can help others.

    – Kemin Zhou
    Mar 3 '17 at 0:28

















  • What gives you git-remote -v ?

    – hek2mgl
    Aug 26 '14 at 10:02






  • 1





    between the init and the commit add a "git add ." step. What output does "git remote" (or git remote -v") offer you?

    – user745733
    Aug 26 '14 at 10:03











  • git remote -v Nothing is Display.

    – Vijay
    Aug 26 '14 at 10:05






  • 1





    did you add 'git add' ?????

    – Raja Simon
    Aug 26 '14 at 10:17






  • 2





    When you are starting a new repository, the first REMOTE command should be git remote add origin git@abc.com:mygit, if you run git remote set-url origin git@abc.com:mygit you will get error message: No such remote 'origin'. I run into the same problem, and it took a few minutes before I figure this out. Hope this can help others.

    – Kemin Zhou
    Mar 3 '17 at 0:28
















What gives you git-remote -v ?

– hek2mgl
Aug 26 '14 at 10:02





What gives you git-remote -v ?

– hek2mgl
Aug 26 '14 at 10:02




1




1





between the init and the commit add a "git add ." step. What output does "git remote" (or git remote -v") offer you?

– user745733
Aug 26 '14 at 10:03





between the init and the commit add a "git add ." step. What output does "git remote" (or git remote -v") offer you?

– user745733
Aug 26 '14 at 10:03













git remote -v Nothing is Display.

– Vijay
Aug 26 '14 at 10:05





git remote -v Nothing is Display.

– Vijay
Aug 26 '14 at 10:05




1




1





did you add 'git add' ?????

– Raja Simon
Aug 26 '14 at 10:17





did you add 'git add' ?????

– Raja Simon
Aug 26 '14 at 10:17




2




2





When you are starting a new repository, the first REMOTE command should be git remote add origin git@abc.com:mygit, if you run git remote set-url origin git@abc.com:mygit you will get error message: No such remote 'origin'. I run into the same problem, and it took a few minutes before I figure this out. Hope this can help others.

– Kemin Zhou
Mar 3 '17 at 0:28





When you are starting a new repository, the first REMOTE command should be git remote add origin git@abc.com:mygit, if you run git remote set-url origin git@abc.com:mygit you will get error message: No such remote 'origin'. I run into the same problem, and it took a few minutes before I figure this out. Hope this can help others.

– Kemin Zhou
Mar 3 '17 at 0:28












3 Answers
3






active

oldest

votes


















125














Two problems:



1 - You never told Git to start tracking any file



You write that you ran



git init
git commit -m "first commit"


and that, at that stage, you got



nothing added to commit but untracked files present (use "git add" to track).


Git is telling you that you never told it to start tracking any files in the first place, and it has nothing to take a snapshot of. Therefore, Git creates no commit. Before attempting to commit, you should tell Git (for instance):




Hey Git, you see that README.md file idly sitting in my working directory, there? Could you put it under version control for me? I'd like it to go in my first commit/snapshot/revision...




For that you need to stage the files of interest, using



git add README.md


before running



git commit -m "some descriptive message"


2 - You haven't set up the remote repository



You then ran



git remote add origin https://github.com/VijayNew/NewExample.git


After that, your local repository should be able to communicate with the remote repository that resides at the specified URL (https://github.com/VijayNew/NewExample.git)... provided that remote repo actually exists!
However, it seems that you never created that remote repo on GitHub in the first place: at the time of writing this answer, if I try to visit the correponding URL, I get



enter image description here



Before attempting to push to that remote repository, you need to make sure that the latter actually exists. So go to GitHub and create the remote repo in question. Then and only then will you be able to successfully push with



git push -u origin master





share|improve this answer

























  • @ Jubobs. 1st prob is my mistake. Now i do like this. git init git add --all git commit -m "first commit". Now it is working. 2) Actually i have deleted my account before 20 mins. Now I have created a new account. https://github.com/VijayMobileApp/WindowsPhoneExample.git

    – Vijay
    Aug 26 '14 at 11:07











  • And still now i am getting remote: Repository not found. fatal: repository 'https://github.com/VijayNew/NewExample.git/' not found

    – Vijay
    Aug 26 '14 at 11:08











  • @Vijay you deleted your old account but still old account in use

    – Raja Simon
    Aug 26 '14 at 11:12






  • 1





    By visiting the URL, I see that you've now created a repo called WindowsPhoneExample on your GitHub account, VijayMobileApp. All you need to do now is run git remote add origin https://github.com/VijayMobileApp/WindowsPhoneExample. Then you should be able to push with git push -u origin master.

    – jubobs
    Aug 26 '14 at 11:17







  • 1





    Sure..!!! Thanks @jubobs..

    – Vijay
    Aug 26 '14 at 11:58


















32














I'm guessing you didn't run this command after the commit failed so just actually run this to create the remote :



 git remote add origin https://github.com/VijayNew/NewExample.git


And the commit failed because you need to git add some files you want to track.






share|improve this answer


















  • 1





    This command only lets the local repo know about the remote one. It doesn't actually create the remote repo on the GitHub servers, which I think is what the OP needs to do here.

    – jubobs
    Aug 26 '14 at 11:47






  • 1





    I'm well aware of what the command does. From the question I was guessing the user probably pasted all the commands at once and the commit failed so he never actually added the remote.

    – Emil Davtyan
    Aug 26 '14 at 12:13






  • 1





    Just to be clear, I wasn't suggesting that you don't know what git remote add does :) Just that you didn't consider the possibility that the OP had never created the remote repo.

    – jubobs
    Aug 26 '14 at 12:14












  • I had the same issue, and I had already created the remote repo. This answer was the solution.

    – sdjuan
    Jun 26 '18 at 18:10


















11














I faced this issue when I was tring to link a locally created repo with a blank repo on github.
Initially I was trying git remote set-url but I had to do git remote add instead.



git remote add origin https://github.com/VijayNew/NewExample.git





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%2f25503017%2fwhy-does-git-tell-me-no-such-remote-origin-when-i-try-to-push-to-origin%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    125














    Two problems:



    1 - You never told Git to start tracking any file



    You write that you ran



    git init
    git commit -m "first commit"


    and that, at that stage, you got



    nothing added to commit but untracked files present (use "git add" to track).


    Git is telling you that you never told it to start tracking any files in the first place, and it has nothing to take a snapshot of. Therefore, Git creates no commit. Before attempting to commit, you should tell Git (for instance):




    Hey Git, you see that README.md file idly sitting in my working directory, there? Could you put it under version control for me? I'd like it to go in my first commit/snapshot/revision...




    For that you need to stage the files of interest, using



    git add README.md


    before running



    git commit -m "some descriptive message"


    2 - You haven't set up the remote repository



    You then ran



    git remote add origin https://github.com/VijayNew/NewExample.git


    After that, your local repository should be able to communicate with the remote repository that resides at the specified URL (https://github.com/VijayNew/NewExample.git)... provided that remote repo actually exists!
    However, it seems that you never created that remote repo on GitHub in the first place: at the time of writing this answer, if I try to visit the correponding URL, I get



    enter image description here



    Before attempting to push to that remote repository, you need to make sure that the latter actually exists. So go to GitHub and create the remote repo in question. Then and only then will you be able to successfully push with



    git push -u origin master





    share|improve this answer

























    • @ Jubobs. 1st prob is my mistake. Now i do like this. git init git add --all git commit -m "first commit". Now it is working. 2) Actually i have deleted my account before 20 mins. Now I have created a new account. https://github.com/VijayMobileApp/WindowsPhoneExample.git

      – Vijay
      Aug 26 '14 at 11:07











    • And still now i am getting remote: Repository not found. fatal: repository 'https://github.com/VijayNew/NewExample.git/' not found

      – Vijay
      Aug 26 '14 at 11:08











    • @Vijay you deleted your old account but still old account in use

      – Raja Simon
      Aug 26 '14 at 11:12






    • 1





      By visiting the URL, I see that you've now created a repo called WindowsPhoneExample on your GitHub account, VijayMobileApp. All you need to do now is run git remote add origin https://github.com/VijayMobileApp/WindowsPhoneExample. Then you should be able to push with git push -u origin master.

      – jubobs
      Aug 26 '14 at 11:17







    • 1





      Sure..!!! Thanks @jubobs..

      – Vijay
      Aug 26 '14 at 11:58















    125














    Two problems:



    1 - You never told Git to start tracking any file



    You write that you ran



    git init
    git commit -m "first commit"


    and that, at that stage, you got



    nothing added to commit but untracked files present (use "git add" to track).


    Git is telling you that you never told it to start tracking any files in the first place, and it has nothing to take a snapshot of. Therefore, Git creates no commit. Before attempting to commit, you should tell Git (for instance):




    Hey Git, you see that README.md file idly sitting in my working directory, there? Could you put it under version control for me? I'd like it to go in my first commit/snapshot/revision...




    For that you need to stage the files of interest, using



    git add README.md


    before running



    git commit -m "some descriptive message"


    2 - You haven't set up the remote repository



    You then ran



    git remote add origin https://github.com/VijayNew/NewExample.git


    After that, your local repository should be able to communicate with the remote repository that resides at the specified URL (https://github.com/VijayNew/NewExample.git)... provided that remote repo actually exists!
    However, it seems that you never created that remote repo on GitHub in the first place: at the time of writing this answer, if I try to visit the correponding URL, I get



    enter image description here



    Before attempting to push to that remote repository, you need to make sure that the latter actually exists. So go to GitHub and create the remote repo in question. Then and only then will you be able to successfully push with



    git push -u origin master





    share|improve this answer

























    • @ Jubobs. 1st prob is my mistake. Now i do like this. git init git add --all git commit -m "first commit". Now it is working. 2) Actually i have deleted my account before 20 mins. Now I have created a new account. https://github.com/VijayMobileApp/WindowsPhoneExample.git

      – Vijay
      Aug 26 '14 at 11:07











    • And still now i am getting remote: Repository not found. fatal: repository 'https://github.com/VijayNew/NewExample.git/' not found

      – Vijay
      Aug 26 '14 at 11:08











    • @Vijay you deleted your old account but still old account in use

      – Raja Simon
      Aug 26 '14 at 11:12






    • 1





      By visiting the URL, I see that you've now created a repo called WindowsPhoneExample on your GitHub account, VijayMobileApp. All you need to do now is run git remote add origin https://github.com/VijayMobileApp/WindowsPhoneExample. Then you should be able to push with git push -u origin master.

      – jubobs
      Aug 26 '14 at 11:17







    • 1





      Sure..!!! Thanks @jubobs..

      – Vijay
      Aug 26 '14 at 11:58













    125












    125








    125







    Two problems:



    1 - You never told Git to start tracking any file



    You write that you ran



    git init
    git commit -m "first commit"


    and that, at that stage, you got



    nothing added to commit but untracked files present (use "git add" to track).


    Git is telling you that you never told it to start tracking any files in the first place, and it has nothing to take a snapshot of. Therefore, Git creates no commit. Before attempting to commit, you should tell Git (for instance):




    Hey Git, you see that README.md file idly sitting in my working directory, there? Could you put it under version control for me? I'd like it to go in my first commit/snapshot/revision...




    For that you need to stage the files of interest, using



    git add README.md


    before running



    git commit -m "some descriptive message"


    2 - You haven't set up the remote repository



    You then ran



    git remote add origin https://github.com/VijayNew/NewExample.git


    After that, your local repository should be able to communicate with the remote repository that resides at the specified URL (https://github.com/VijayNew/NewExample.git)... provided that remote repo actually exists!
    However, it seems that you never created that remote repo on GitHub in the first place: at the time of writing this answer, if I try to visit the correponding URL, I get



    enter image description here



    Before attempting to push to that remote repository, you need to make sure that the latter actually exists. So go to GitHub and create the remote repo in question. Then and only then will you be able to successfully push with



    git push -u origin master





    share|improve this answer















    Two problems:



    1 - You never told Git to start tracking any file



    You write that you ran



    git init
    git commit -m "first commit"


    and that, at that stage, you got



    nothing added to commit but untracked files present (use "git add" to track).


    Git is telling you that you never told it to start tracking any files in the first place, and it has nothing to take a snapshot of. Therefore, Git creates no commit. Before attempting to commit, you should tell Git (for instance):




    Hey Git, you see that README.md file idly sitting in my working directory, there? Could you put it under version control for me? I'd like it to go in my first commit/snapshot/revision...




    For that you need to stage the files of interest, using



    git add README.md


    before running



    git commit -m "some descriptive message"


    2 - You haven't set up the remote repository



    You then ran



    git remote add origin https://github.com/VijayNew/NewExample.git


    After that, your local repository should be able to communicate with the remote repository that resides at the specified URL (https://github.com/VijayNew/NewExample.git)... provided that remote repo actually exists!
    However, it seems that you never created that remote repo on GitHub in the first place: at the time of writing this answer, if I try to visit the correponding URL, I get



    enter image description here



    Before attempting to push to that remote repository, you need to make sure that the latter actually exists. So go to GitHub and create the remote repo in question. Then and only then will you be able to successfully push with



    git push -u origin master






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 23 '17 at 10:31









    Community

    11




    11










    answered Aug 26 '14 at 11:00









    jubobsjubobs

    34.6k18110132




    34.6k18110132












    • @ Jubobs. 1st prob is my mistake. Now i do like this. git init git add --all git commit -m "first commit". Now it is working. 2) Actually i have deleted my account before 20 mins. Now I have created a new account. https://github.com/VijayMobileApp/WindowsPhoneExample.git

      – Vijay
      Aug 26 '14 at 11:07











    • And still now i am getting remote: Repository not found. fatal: repository 'https://github.com/VijayNew/NewExample.git/' not found

      – Vijay
      Aug 26 '14 at 11:08











    • @Vijay you deleted your old account but still old account in use

      – Raja Simon
      Aug 26 '14 at 11:12






    • 1





      By visiting the URL, I see that you've now created a repo called WindowsPhoneExample on your GitHub account, VijayMobileApp. All you need to do now is run git remote add origin https://github.com/VijayMobileApp/WindowsPhoneExample. Then you should be able to push with git push -u origin master.

      – jubobs
      Aug 26 '14 at 11:17







    • 1





      Sure..!!! Thanks @jubobs..

      – Vijay
      Aug 26 '14 at 11:58

















    • @ Jubobs. 1st prob is my mistake. Now i do like this. git init git add --all git commit -m "first commit". Now it is working. 2) Actually i have deleted my account before 20 mins. Now I have created a new account. https://github.com/VijayMobileApp/WindowsPhoneExample.git

      – Vijay
      Aug 26 '14 at 11:07











    • And still now i am getting remote: Repository not found. fatal: repository 'https://github.com/VijayNew/NewExample.git/' not found

      – Vijay
      Aug 26 '14 at 11:08











    • @Vijay you deleted your old account but still old account in use

      – Raja Simon
      Aug 26 '14 at 11:12






    • 1





      By visiting the URL, I see that you've now created a repo called WindowsPhoneExample on your GitHub account, VijayMobileApp. All you need to do now is run git remote add origin https://github.com/VijayMobileApp/WindowsPhoneExample. Then you should be able to push with git push -u origin master.

      – jubobs
      Aug 26 '14 at 11:17







    • 1





      Sure..!!! Thanks @jubobs..

      – Vijay
      Aug 26 '14 at 11:58
















    @ Jubobs. 1st prob is my mistake. Now i do like this. git init git add --all git commit -m "first commit". Now it is working. 2) Actually i have deleted my account before 20 mins. Now I have created a new account. https://github.com/VijayMobileApp/WindowsPhoneExample.git

    – Vijay
    Aug 26 '14 at 11:07





    @ Jubobs. 1st prob is my mistake. Now i do like this. git init git add --all git commit -m "first commit". Now it is working. 2) Actually i have deleted my account before 20 mins. Now I have created a new account. https://github.com/VijayMobileApp/WindowsPhoneExample.git

    – Vijay
    Aug 26 '14 at 11:07













    And still now i am getting remote: Repository not found. fatal: repository 'https://github.com/VijayNew/NewExample.git/' not found

    – Vijay
    Aug 26 '14 at 11:08





    And still now i am getting remote: Repository not found. fatal: repository 'https://github.com/VijayNew/NewExample.git/' not found

    – Vijay
    Aug 26 '14 at 11:08













    @Vijay you deleted your old account but still old account in use

    – Raja Simon
    Aug 26 '14 at 11:12





    @Vijay you deleted your old account but still old account in use

    – Raja Simon
    Aug 26 '14 at 11:12




    1




    1





    By visiting the URL, I see that you've now created a repo called WindowsPhoneExample on your GitHub account, VijayMobileApp. All you need to do now is run git remote add origin https://github.com/VijayMobileApp/WindowsPhoneExample. Then you should be able to push with git push -u origin master.

    – jubobs
    Aug 26 '14 at 11:17






    By visiting the URL, I see that you've now created a repo called WindowsPhoneExample on your GitHub account, VijayMobileApp. All you need to do now is run git remote add origin https://github.com/VijayMobileApp/WindowsPhoneExample. Then you should be able to push with git push -u origin master.

    – jubobs
    Aug 26 '14 at 11:17





    1




    1





    Sure..!!! Thanks @jubobs..

    – Vijay
    Aug 26 '14 at 11:58





    Sure..!!! Thanks @jubobs..

    – Vijay
    Aug 26 '14 at 11:58













    32














    I'm guessing you didn't run this command after the commit failed so just actually run this to create the remote :



     git remote add origin https://github.com/VijayNew/NewExample.git


    And the commit failed because you need to git add some files you want to track.






    share|improve this answer


















    • 1





      This command only lets the local repo know about the remote one. It doesn't actually create the remote repo on the GitHub servers, which I think is what the OP needs to do here.

      – jubobs
      Aug 26 '14 at 11:47






    • 1





      I'm well aware of what the command does. From the question I was guessing the user probably pasted all the commands at once and the commit failed so he never actually added the remote.

      – Emil Davtyan
      Aug 26 '14 at 12:13






    • 1





      Just to be clear, I wasn't suggesting that you don't know what git remote add does :) Just that you didn't consider the possibility that the OP had never created the remote repo.

      – jubobs
      Aug 26 '14 at 12:14












    • I had the same issue, and I had already created the remote repo. This answer was the solution.

      – sdjuan
      Jun 26 '18 at 18:10















    32














    I'm guessing you didn't run this command after the commit failed so just actually run this to create the remote :



     git remote add origin https://github.com/VijayNew/NewExample.git


    And the commit failed because you need to git add some files you want to track.






    share|improve this answer


















    • 1





      This command only lets the local repo know about the remote one. It doesn't actually create the remote repo on the GitHub servers, which I think is what the OP needs to do here.

      – jubobs
      Aug 26 '14 at 11:47






    • 1





      I'm well aware of what the command does. From the question I was guessing the user probably pasted all the commands at once and the commit failed so he never actually added the remote.

      – Emil Davtyan
      Aug 26 '14 at 12:13






    • 1





      Just to be clear, I wasn't suggesting that you don't know what git remote add does :) Just that you didn't consider the possibility that the OP had never created the remote repo.

      – jubobs
      Aug 26 '14 at 12:14












    • I had the same issue, and I had already created the remote repo. This answer was the solution.

      – sdjuan
      Jun 26 '18 at 18:10













    32












    32








    32







    I'm guessing you didn't run this command after the commit failed so just actually run this to create the remote :



     git remote add origin https://github.com/VijayNew/NewExample.git


    And the commit failed because you need to git add some files you want to track.






    share|improve this answer













    I'm guessing you didn't run this command after the commit failed so just actually run this to create the remote :



     git remote add origin https://github.com/VijayNew/NewExample.git


    And the commit failed because you need to git add some files you want to track.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 26 '14 at 10:09









    Emil DavtyanEmil Davtyan

    10.5k53657




    10.5k53657







    • 1





      This command only lets the local repo know about the remote one. It doesn't actually create the remote repo on the GitHub servers, which I think is what the OP needs to do here.

      – jubobs
      Aug 26 '14 at 11:47






    • 1





      I'm well aware of what the command does. From the question I was guessing the user probably pasted all the commands at once and the commit failed so he never actually added the remote.

      – Emil Davtyan
      Aug 26 '14 at 12:13






    • 1





      Just to be clear, I wasn't suggesting that you don't know what git remote add does :) Just that you didn't consider the possibility that the OP had never created the remote repo.

      – jubobs
      Aug 26 '14 at 12:14












    • I had the same issue, and I had already created the remote repo. This answer was the solution.

      – sdjuan
      Jun 26 '18 at 18:10












    • 1





      This command only lets the local repo know about the remote one. It doesn't actually create the remote repo on the GitHub servers, which I think is what the OP needs to do here.

      – jubobs
      Aug 26 '14 at 11:47






    • 1





      I'm well aware of what the command does. From the question I was guessing the user probably pasted all the commands at once and the commit failed so he never actually added the remote.

      – Emil Davtyan
      Aug 26 '14 at 12:13






    • 1





      Just to be clear, I wasn't suggesting that you don't know what git remote add does :) Just that you didn't consider the possibility that the OP had never created the remote repo.

      – jubobs
      Aug 26 '14 at 12:14












    • I had the same issue, and I had already created the remote repo. This answer was the solution.

      – sdjuan
      Jun 26 '18 at 18:10







    1




    1





    This command only lets the local repo know about the remote one. It doesn't actually create the remote repo on the GitHub servers, which I think is what the OP needs to do here.

    – jubobs
    Aug 26 '14 at 11:47





    This command only lets the local repo know about the remote one. It doesn't actually create the remote repo on the GitHub servers, which I think is what the OP needs to do here.

    – jubobs
    Aug 26 '14 at 11:47




    1




    1





    I'm well aware of what the command does. From the question I was guessing the user probably pasted all the commands at once and the commit failed so he never actually added the remote.

    – Emil Davtyan
    Aug 26 '14 at 12:13





    I'm well aware of what the command does. From the question I was guessing the user probably pasted all the commands at once and the commit failed so he never actually added the remote.

    – Emil Davtyan
    Aug 26 '14 at 12:13




    1




    1





    Just to be clear, I wasn't suggesting that you don't know what git remote add does :) Just that you didn't consider the possibility that the OP had never created the remote repo.

    – jubobs
    Aug 26 '14 at 12:14






    Just to be clear, I wasn't suggesting that you don't know what git remote add does :) Just that you didn't consider the possibility that the OP had never created the remote repo.

    – jubobs
    Aug 26 '14 at 12:14














    I had the same issue, and I had already created the remote repo. This answer was the solution.

    – sdjuan
    Jun 26 '18 at 18:10





    I had the same issue, and I had already created the remote repo. This answer was the solution.

    – sdjuan
    Jun 26 '18 at 18:10











    11














    I faced this issue when I was tring to link a locally created repo with a blank repo on github.
    Initially I was trying git remote set-url but I had to do git remote add instead.



    git remote add origin https://github.com/VijayNew/NewExample.git





    share|improve this answer



























      11














      I faced this issue when I was tring to link a locally created repo with a blank repo on github.
      Initially I was trying git remote set-url but I had to do git remote add instead.



      git remote add origin https://github.com/VijayNew/NewExample.git





      share|improve this answer

























        11












        11








        11







        I faced this issue when I was tring to link a locally created repo with a blank repo on github.
        Initially I was trying git remote set-url but I had to do git remote add instead.



        git remote add origin https://github.com/VijayNew/NewExample.git





        share|improve this answer













        I faced this issue when I was tring to link a locally created repo with a blank repo on github.
        Initially I was trying git remote set-url but I had to do git remote add instead.



        git remote add origin https://github.com/VijayNew/NewExample.git






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 30 '18 at 0:55









        ishandutta2007ishandutta2007

        5,17364364




        5,17364364



























            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%2f25503017%2fwhy-does-git-tell-me-no-such-remote-origin-when-i-try-to-push-to-origin%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

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript