Q:

How to upload the newly created to github? 

I have one project developed using codeigniter and pulled from github. 
In that I created one new folder called media in the root path of Codeigniter. 
How to upload that folder to github? 
Can I upload the folder like other files? 

A:

You need to "git add" your new folder so it can be tracked by git and uploaded with the other files. 
git add <path to the media folder>
git commit -a -m 'Added media folder'
git push <repository> <branch>

If you need more explanations about how git works, you can look here

