Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

37.3. GitHub

http://www.github.com/

37.3.1. 首次操作

Global setup:

Download and install Git

git config --global user.name "Neo Chan"
git config --global user.email bg7nyt@gmail.com
	 		

Next steps:

mkdir neo
cd neo
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:netkiller/neo.git
git push origin master
		  	

Existing Git Repo?

cd existing_git_repo
git remote add origin git@github.com:netkiller/neo.git
git push origin master
  			

37.3.2. clone 已经存在的仓库

$ git clone https://github.com/netkiller/netkiller.github.com.git

git config --global user.name "Your Name"
git config --global user.email you@example.com
git commit --amend --reset-author