I am a git newbie. Please bare me if my question is silly. I created a repository nameed "testrepo" in github.com (GUI) and added a readme file.(committed).
if i issue this command "git clone https://github.com/username/testrepo.git" from my local desktop machine, it creates a new repository in the same name (testrepo) with all the content. (readme file). I understood this. As the name says, it is exactly cloning the remote repository (not cloning a branch in a repo) into local machine.
My question is i created a local repository named "testrepo2" by issuing a command "git init testrepo2". I added some files and i committed the changes.
Now thru some command i want to export this entire repository (testrepo2) to my github.com account. To be precise i dont want to create a repository manually in github.com and push the local changes to that. I want to push the entire local repo to the remote. Please help me. Thanks in advance.