首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

gitHub下手

2012-06-29 
gitHub上手?install in cgwinadd git ssh?go into local project foldergit init(git add .git co

gitHub上手

?

==install in cgwin

add "git" "ssh"

?

==go into local project folder

git init

(git add .

git commit)

?

==add your config

git config --global user.name 'sunxboy'

git config --global user.email sunxboy@gmail.com

git config --global color.diff auto

git config --global color.status auto

git config --global color.branch auto

?

==create public key

ssh-keygen -C 'sunxboy@gmail.com' -t rsa

enter -> enter -> enter

copy the content of the "id_rsa.pub" file into the github page which?

your project is. (admin->deploy keys-> add deploy key)

?

==test it if it works

cd ~/SmartVoice

touch README

git add README

git commit -m 'first commit'

git remote add origin git@github.com:sunxboy/SmartVoice.git

git push -u origin master

("master" is the branch name)

?

?

?

热点排行