git的安装与使用(一)--windows平台 .
?
1、Create ? github ? Account (在github網站上創建一個賬號)
eg.??you?used?the?email: taito@yahoo.com
?
2、Download?&&?install MsysGit (下載windows平臺下的git軟件)
??Then?open?the?git ?bash?,?input?the?commends
??$?git ?config?--global?user.name?"Your?Name"
? Your Name 是你注冊時用的用戶名
??$?git ?config?--global?user.email taito@yahoo.com
?
3、Create?SSH-KEY? (創建SSH-key)
??$?ssh-keygen??-C?? ' taito@yahoo.com' ??-t??rsa
??#?The?git ?bash?ask?you?to?enter?something?,??but?you?can? Skip ?everything?,
???just?push?the?"? ENTER ? " ? key,?when?it?'s?finished,you?need?open?the?file:? id_rsa.pub
??? And? copy?the?key.?
?? 創建rsa, 一路回車,最后會提示你
?? Your public key has been saved in .... (某個地方) .pub 文件
?? 打開這個文件,復制key。
?? 登陸git網站,進入你的個人管理平臺,創建一個ssh key,title隨便填寫,下面的key粘貼此段代碼。
?
4、Create?first?project (創建你的第一個項目)
?? Loginto?the?github?home?and?create?your?first?project,?Then?you?can?see?this?page:
??? 取個項目的名字,然后繼續.會看到操作步驟。
Global setup:
Download and install Gitgit config --global user.name "Your Name"
git config --global user.email squarezw@yahoo.com.cn
Next steps:
mkdir poolcd pool
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:squarezw/pool.git
git push origin master
在你的git bash下完成到這里后,看到成功上傳項目后,即可直接跳到最下面的Continue!
如果出現Permission denied (publickey). 一般是你的ssh key沒有正確添加。
Existing Git Repo?
cd existing_git_repogit remote add origin git@github.com:squarezw/pool.git
git push origin master
Importing a Subversion Repo?
Click hereWhen you're done:
Continue轉載于:https://www.cnblogs.com/zhouwenwu/archive/2012/02/29/2373847.html
總結
以上是生活随笔為你收集整理的git的安装与使用(一)--windows平台 .的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux视频教程之vsftp_B
- 下一篇: php注入详解