As I am very new to github or git
I created a repository and understood the basics for using github
But don't know how to include my favourite java codes to it
As by their helping document named as "Hello world" they only provide you information how to start working at it and its basics
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
I went to that site once...other than finding out it was a VCS I wasn't sure how useful it would be for someone new to this like me so I left. Hopefully I will know enough within the next six months that I can go back and utilize it if necessary.
You could try using BitBucket instead to get started. It's another online code repository where you can sign up and host your projects for free, and it also uses Git underneath, but I find it's easier to use than the Github website, and the instructions are usually fairly clear. You might also like to look at the simple introductory book Git - Version Control For Everyone which will give you a simple introduction to Git and version control, and this book uses BitBucket for its examples.
The git docs are fairly good and github is reasonably (though not excessively) intuitive.
The real appeal, I think - aside from the fact that it's Linus Torvalds clearinghouse is that it allows people to set up what amounts to a mini-wiki/blog. Or actually several of them, since the github is designed to allow you to host many individual projects under a single account ID.
Git's strongest feature lies in the fact that you can work on projects using a local git repo, then push them through to the github repo when you're ready for the world to admire your work.
But that's only part of the deal. The github server understands markdown language, which, like the Wiki markup language allows people to create formatted, hyperlinked documents without the tedium of coding html. So it's typical that a project will include a "README.md" page that show when someone visits your public git repo for a project that can be used to describe the project and how to use it. For example: https://github.com/mtsinc1/dibs
Among the popular resources hosted at github you can find Docker container definitions and deployment instructions, Puppet modules (and, again, instructions), and so forth. And, of course, this: https://github.com/torvalds/linux
Science is the process of replacing what we "know" with what is TRUE. Politics, alas, often prefers to be the opposite.
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)