Friday, May 9, 2014

How can I upload fresh code at github?

git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/username/Hello-World.git
# Creates a remote named "origin" pointing at your GitHub repository

git push origin master
# Sends your commits in the "master" branch to GitHub

No comments:

Post a Comment