开发者

How do I add my whole project on GitHub?

I have a GitHub account. I fixed up everything, so I'm ready fo开发者_JAVA百科r uploads.

GitHub's help on creating a repo covers uploading a single README file, but I want to upload the entire project. How I can do it step by step?

Thank you!


create new repository here https://github.com/repositories/new

git clone to local folder, add files of project

and then "git add ." "git commit" & "git push"

Maybe you must add ssh key into github panel(I dont remeber)


The "single README" is just an example. Of course you can add, commit and push as much files as you like. The README-file is special to github, because its shown at the bottom of the repositories page (side note: works in subdirectories too). Thats the only reason, why they only mention this one.

git add README
git add otherFile
git add aDirectory

It really doesn't make any difference for github when you commit and push specific files to github. However, I'm used to add only the most general files (README and some license files) to the initial commit. Its just a matter of your personal preference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜