Results 1 to 6 of 6

Thread: unable to 'git push' to my github account(using First time)

  1. #1
    Join Date
    Aug 2012
    Beans
    623

    unable to 'git push' to my github account(using First time)

    Hello,
    I signed up for a Micro account today at github and created a repository called Hello-World. These were the steps given to me at github upon clcking the Create Repository button,
    Code:
    touch README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/IAMTubbby/Hello-World.git
    git push -u origin master

    However, on running the 'git push' command, I get an error as follows
    Code:
    $ git push -u origin master
    Username: 
    Password: 
    error: The requested URL returned error: 403 while accessing http://github.com/IAMTubby/Hello-World.git/info/refs
    
    
    fatal: HTTP request failed
    How do I perform a 'git push' from my account ?

    When I repeated the process the next time, I was errored out at the 'git remote add origin' step itself.
    Code:
    $ git remote add origin https://github.com/IAMTubbby/Hello-World.git
    fatal: remote origin already exists.
    Please advise.
    Thanks.

  2. #2
    Join Date
    Aug 2012
    Beans
    623

    Re: unable to 'git push' to my github account(using First time)

    I tried with one more UserAccount and Repository and it worked. Which means nothing's wrong with my git versions/environment etc.

    I have ensured that in the one in which it's not working
    1. It is a public repository
    2. The username and password when I do a 'git push' are correct.
    Where else could it have gone wrong ?

    I have one more question - For my github account which works, at the time of account creation, it was said that the free scheme gives you 0 public repositories. Then how am I able to git push from this account which is free ?

    Thanks.

    PS : It's the time first time I'm using git. If this is the not the right place to post these queries, please move it to another sub-forum or notify me. I shall take down the post.

  3. #3
    Join Date
    Feb 2009
    Beans
    1,469

    Re: unable to 'git push' to my github account(using First time)

    The command you posted isn't consistent with the error message:
    Code:
    git remote add origin https://github.com/IAMTubbby/Hello-World.git
    Code:
    error: The requested URL returned error: 403 while accessing http://github.com/IAMTubby/Hello-World.git/info/refs
    Please copy and paste, don't type, commands and error messages.

    Run `git remote -v` to verify the origin URL.

  4. #4
    Join Date
    Aug 2012
    Beans
    623

    Re: unable to 'git push' to my github account(using First time)

    Quote Originally Posted by trent.josephsen View Post
    The command you posted isn't consistent with the error message:
    trent.josephsen, that was extremely irresponsible on my part. I promise not to repeat this in future.

    I have retried the steps and it works fine, I'm able to see my files on github.

    I just have a general question though regarding github,
    At the time of my github account creation, it was said that the free account would give me 0 repositories. Then how am I able to post my files and see it available online ?

    Thanks.

  5. #5
    Join Date
    Apr 2011
    Location
    Maryland
    Beans
    1,461
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: unable to 'git push' to my github account(using First time)

    I thought the major difference between the free account and the paid account was the ability to have private repositories. IIRC, only the paid account allow for private repos, while the free accounts require that the repos are public. I have a free account myself, and I've not come across any limitations on the number of repos that I can have. In fact, I just did a quick check and I think this is accurate:

    https://github.com/pricing

  6. #6
    Join Date
    Aug 2012
    Beans
    623

    Re: unable to 'git push' to my github account(using First time)

    Quote Originally Posted by drmrgd View Post
    I thought the major difference between the free account and the paid account was the ability to have private repositories.
    Thanks drmrgd, trent.josephsen.
    Marking the thread as solved.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •