github tutorial

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s