step 1: create a new repository on github.com
step2: add
echo "# other_codes" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/tngotran/other_codes.git git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/tngotran/other_codes.git git push -u origin master
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
git add . to add all the file
and then git reset Head to untrack some specific files
then git commit -m ‘message’ to prepare for upload
git remote add origin (or other name) with the https://git..blablabla
then git push -u origin master
then enter username and password.
Advertisements