From local repository, create remote repositories on github



  • The question is whether a github.com folder can be created for the repository of git by local computer teams. I mean, should such teams work:

    git remote add shot_link_name "https://github.com/user/myproject.git" 
    git push -u shot_link_name master
    

    If github.com is the user of myproject.git is missing. It's interesting to know whether every time we go into the server and start creating remote repositories and cloning it or whether it's possible to do everything locally and, if necessary, to intimidate the server. Thank you very much.



  • Judging by handing over the request

    https://www.google.ru/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=github%20create%20repository%20from%20local

    You can use API guithab and send a request for a cut to create a repository as described https://stackoverflow.com/a/10325316/3212712

    curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
    

    Replace. USER To your lasernam a REPO in the name of a new repository. Once this request is sent, you will have to introduce the password from the account and the repositories will be created.

    After which a new one can be added remote For local repository and scare everything you need:

    git remote add origin git@github.com:USER/REPO.git
    git push origin master
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2