Login Password

answers

Back to answers overview
Hi, create a local git repository on my computer and want to push the local changes to the repository on bettercodes.org. before i started i ran: git config --global http.sslVerify false then i used: git init git add . git commit -a -m "Initial commit" git remote add origin https://git.bettercodes.org/mydirectory pit push origin master i get the following error message: error: The requested URL returned error: 401 while accessing https://git.bettercodes.org/mydirectory/info/refs fatal: HTTP request failed What is wrong?
posted 1 year, 8 months ago
Tags: git, repository, error

Answers (18)

  • Andrey · posted 1 year, 8 months ago · View

    i had same error. use following pattern: https://user:pass@git.bettercodes.org/youProjectName

  • Ronny · posted 1 year, 8 months ago · View

    hi, i will try this…

    what is the correct procedure to checkin the source code?

    shoult i create a local repository and push this to the remote repository?

    must i use:

    git push origin master

    or only

    git push origin?

    OR

    should i clone the remote repository? the i get following message:

    warning: remote HEAD refers to nonexistent ref, unable to checkout.

    is there a nice tutorial on bettercodes.org which is the correct procedure?

    • Avatar Image
      Andrey · 1 year, 8 months ago

      looks like git is not working. i see same messages. i can’t clone repo or push to origin. i wrote to feedback but no answer yet, i am very upset. i think i will switch to svn until git is fixed.

      • Avatar Image
        Ronny · 1 year, 8 months ago

        okay, if you know more, tell me please

  • Bjoern Gottowik · posted 1 year, 8 months ago · View

    Please use this initialization process

    cd my_project
    git init
    git add *
    git commit -m ”My initial commit message”
    git remote add origin git@example.com:my_project.git
    git push origin master

    Last line is important! Always push origin master before

    git clone git@example.com:my_project.git

    Hope this helps!

  • Ronny · posted 1 year, 8 months ago · View

    Hi Bjoern, i trried this

    git init

    git add *

    git commit -m ”Initial”

    git remote add origin git@bettercodes.org:myproject.git

    git push origin master

    then i get following error message:

    Under windows (with msysgit):
    From putty: Disconnected: No supported autentication method availible

    and in the command line
    fatal: The remote end hung up unexpectedly

    Know i will test it under linux…

    Is it my mistake? ;-)

    • Avatar Image
      Ronny · 1 year, 8 months ago

      under linux i got following error:

      Permission denied (publickey).
      fatal: The remote end hung up unexpectedly

  • Andrey · posted 1 year, 8 months ago · View

    Ronny, try now, it was fixed.

  • Bjoern Gottowik · posted 1 year, 8 months ago · View

    Mathias wrote an entry on his blog here: http://blog.mathiaslin.com/project-hosting-on-bettercodesorg-with-git

    Thanks!!!

    Hey guys…we are very, very sorry for the taking down SVN and GIT yesterday for a while. We moved everything to a more powerful server… as you probably know…sometimes things do not work out as expected. Thanks for you patience and please stay with us!!!

  • Niklas Günther · posted 1 year, 8 months ago · View

    Does it work now?

    We changed some Server-Settings. Please be sure to set:

    git config –global http.sslVerify false

    Because if this isn’t, it causes a lot of problems with our ssl-certificate.

  • Ronny · posted 1 year, 8 months ago · View

    Hi,

    it should work now!
    A short summary:

    First of all, you have to do this:

    git config –global http.sslVerify false

    If you want to create a new project:

    mkdir yourDirectory
    cd yourDirectory

    git init

    git add .

    git commit -m ”Your commit message”

    git remote add origin https://user:pass@git.bettercodes.org/yourProjectName

    git push origin master

    If you want to work on a distributed project do this:

    git clone https://user:pass@git.bettercodes.org/yorprojectName
    :-)

  • Lenka Pitonakova · posted 1 year, 8 months ago · View

    I tried doing exactly that and I get an error: https://myName:myPass@git.bettercodes.org/MyProject/info/refs not found: did you run git update-server-info on the server?

    Would it have something to do with the fact that even though I created the project and clicked on create git repository, the message on the Repositories page still says there is no available?

  • Lenka Pitonakova · posted 1 year, 8 months ago · View

    OK after some playing with it I got permission denied error:

    git clone myUserName@bettercodes.org:MyProjName.git
    Cloning into EvolNoFitnessFunc…
    Permission denied (publickey).

    I couldn’t find anywhere on the web site where I could put my public key though?

  • Lenka Pitonakova · posted 1 year, 7 months ago · View

    Hi again, I believe the problem with creating git repositories on the site has been solved, thank you! I just used Ronny’s method and it worked this time.

  • John Glaros · posted 1 year, 7 months ago · View

    I have attempted Ronny’s way several times, and always end up with the error below when pushing:

    John@JOHN-PC ~/workspace/gitrepo2 (master)
    $ git push origin master
    Fetching remote heads…
    refs/
    refs/heads/
    refs/tags/
    updating ’refs/heads/master’
    from 0000000000000000000000000000000000000000
    to e337079b18d0244252ab4244da7a6bd3b3cb54bd
    sending 11 objects
    MOVE fa272c565998d0e717e7b4fa2d93e212ac8fcd93 failed, aborting (22/400)
    MOVE 45e6a7285a8560ac47b4197ea440bce46561e379 failed, aborting (22/400)
    MOVE cdea74e1b72ba320a49668e79cf786aca668c43f failed, aborting (22/400)
    MOVE 056f06c8216f251e196714c1e2f73cf3d78ee51a failed, aborting (22/400)
    MOVE bde5cd1f5ebf13909457afdef00c08253707b272 failed, aborting (22/400)
    Updating remote server info
    fatal: git-http-push failed

    • Avatar Image
      Mika Andrianarijaona · 8 months, 3 weeks ago

      I have the same problem..what have you found the solution??

    • Avatar Image
      Mika Andrianarijaona · 8 months, 3 weeks ago

      My problem was solved using : git config –global http.sslVerify false

  • Abdul-Fattah Mahran · posted 1 year, 6 months ago · View

    I am working using proxy and I can not make ”git push origin master”

  • worse codes · posted 1 year, 5 months ago · View

    Some extra info, guess I’ll just add to the thread… If after following all the steps to set up git you get the following error:

    $ git push origin master
    fatal: Authentication failed

    Then try removing special characters from your bettercodes.org password.

    • Avatar Image
      worse codes · 1 year, 1 month ago

      arg! right! that was pretty dumb of me.

  • Vibhav Garg · posted 1 year, 2 months ago · View

    git push origin master
    error: src refspec master does not match any.

    • Avatar Image
      worse codes · 1 year, 1 month ago

      sounds like you don’t have a master branch…

    • Avatar Image
      Gijsbert Wierink · 1 year, 1 month ago

      Hi guys,

      I also had this ”error: src refspec master does not match any.” error while following the how-to. After I did ”git add .” after ”git init” all was well. Then ”git branch -al” also showed a happy master branch :-) .

  • Alex Stringel · posted 11 months, 2 weeks ago · View

    The WebDav is not configured correctly because this should go through easily…they need to check their server configs…

    • Avatar Image
      Alex Stringel · 11 months, 2 weeks ago

      I say this because everyones issues are unresolved after 1 months time.

      • Avatar Image
        Alex Stringel · 11 months, 2 weeks ago

        And, because I get an error now when I try to even create a new repo in the admin section.

  • George Zhang · posted 10 months, 3 weeks ago · View

    i have some error infor as: error: Failed connect to git.bettercodes.org:443; anybody has any idea?

  • Gustavo Neves · posted 7 months, 2 weeks ago · View

    Hi, I have been trying for many many hours and getting the same error Lenka got:
    https://mynane:mypass@git.bettercodes.org/ProjectName/info/refs not found: did you run git update-server-info on the server?
    I am totally clueless on how to proceed :(
    any ideas?

Share your knowledge & become an expert


Help other developers solving their problems and become an expert on bettercodes.org.

Do not hesitate to ask the questioner for more details if you miss some information here.

Q & A Statistics

214
open questions
0
closed questions
214
questions asked
0% closed ratio
bettercodes.org is released as free software without warranties under GNU Affero GPL v3