How do you add a Github file?



  • How do you add a file to Github repositories?
    With the help of a learning article https://guides.github.com/activities/hello-world/ (d) It was possible to create README.md, but there's nothing to say about adding your file.



  • clone remote repositories into your local folder using the team. https://git-scm.com/docs/git-clone

    git clone git://github.com/schacon/grit.git
    

    Either way.

    1. Create your local repository, call the project catalogue team. git init
    2. Add the files to the repository team. git add <folder>(или <file>)(e.g. git add . - add the photovoltaic to all the files in the current catalogue in local repositories)
    3. Make your first local comedy in the repository. git commit -m "First commit"
    4. Add local repository to remote repositories github git remote add origin https://github.com/user/repo.git
    5. Now you can make a team. push Repository git push origin masterby sending your local master grid to the origin server. github Repository). Now you can see the added files on github

    If you already have a local repository, you're going to want to fill it. github, complete all the paragraphs from 4. After that, your local repository will be located on the github server.


Log in to reply
 


Suggested Topics

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