If you have an existing web app you want to publish to Github, here's how.
Create a new Github Repo.
Change Directory into your rails app
Check your status.
Add files to a Git repo.
git add -A
Commit the files to Git and add a message.
git commit -m "Initial commit"
Review your git by viewing logs.
Add your newly created Github repo through
remote add. Take note,
origin is an arbitrary name. You can use any name.
git remote add origin firstname.lastname@example.org:<username>/<new_app>.git
Push your commits to Github.
git push -u origin master