pushing back to github repository

I cloned one of my github repository to my office desktop machine using the following command

git clone git://github.com/indiajoe/MyRepo.git

After making some changes, and commiting it, i wasn’t able to push back the changes to repository using the command,

  • Project layout with vagrant, docker and git
  • git plugin for Jenkins fails to clone a repo from local machine. Error code 128
  • Git - What is the difference between push.default “matching” and “simple”
  • How can I email someone a git repository?
  • How to resume a git pull/clone after a hung up unexpectedly?
  • Running git from Windows Cmd line: Where are key files?
  • git push -u orgin master
    

    Following was the error message.

    fatal: 'orgin' does not appear to be a git repository
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.
    

    I tried to re-enter the address, as shown below.

    git remote rm origin
    git remote add origin https://github.com/indiajoe/MyRepo.git
    

    Even after this, i was getting the same error.
    Output of my git remote -v is

    origin  https://github.com/indiajoe/MyRepo.git (fetch)
    origin  https://github.com/indiajoe/MyRepo.git (push)
    

    What could be going wrong here?

    PS: While cloning I wasn’t able to do via https by the following command

    git clone https://github.com/indiajoe/MyRepo.git
    

    But it cloned without any issue with the command,

    git clone git://github.com/indiajoe/MyRepo.git
    

    I don’t know, why this happened. but could this be a related issue?

  • Point branch to new commit
  • git svn clone of a single directory of SVN repository
  • Git: delete a single remote revision
  • GIT-SVN clone command executes without errors but the local master branch is missing
  • github linking with other repos
  • How to build Eclipse JDT Core from source code via Git?
  • One Solution collect form web for “pushing back to github repository”

    git push -u `orgin` `master`
    

    That shouldn’t work: it is ‘origin‘, notorgin‘ 😉

    So, by default, this should work:

    git push -u origin master
    

    (as I detail in “Why do I need to explicitly push a new branch?”)

    Git Baby is a git and github fan, let's start git clone.