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.
- Create your local repository, call the project catalogue team.
git init
- 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) - Make your first local comedy in the repository.
git commit -m "First commit"
- Add local repository to remote repositories github
git remote add origin https://github.com/user/repo.git
- Now you can make a team.
push
Repositorygit push origin master
by 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.
- Create your local repository, call the project catalogue team.