Github Note

I copy from www.github.com. I always forget step by step using method in github. So, I need to note in my blog.

Global setup:

Download and install Git git config –global user.name “Your Name”

git config –global user.email “Your Email”

Next steps:

mkdir projectdir

cd projectdir git init

touch README Making File git add README Adding File git add . Add All File git commit -m ‘first commit’

git remote add origin [email protected]:username/projectname.git

git push origin master

 

Is a information message. No Need to type.

Existing Git Repo?

cd existing_git_repo

git remote add origin [email protected]:username/projectname.git git push origin master

comments powered byDisqus