Windows平台使用git bash管理github中的工程

來源:互聯網
上載者:User

標籤:

1、安裝git bash

 msysgit(http://code.google.com/p/msysgit/)

 

2、建立SSH key

右鍵點擊目錄,

ssh-keygen.exe -C "[email protected]" -t rsa

產生的key存放位置:

SSH key的原理:

 

3、拷貝公開金鑰到github

測試一下公開金鑰是否可用

ssh -T [email protected]

 

4、從github拷出你的代碼

拷出

$git clone git://github.com/schacon/simplegit.git

 

5、開始向github提交或提交  5.1 配置  git config --global user.name "Your Name"  git config --global user.email [email protected] 5.2 建立Repository 1 mkdir clrs2 cd clrs3 git init4 touch README5 git add README6 git commit -m ‘first commit‘7 git remote add origin [email protected]:your_name/clrs.git8 git push origin master 5.3 提交已經存在的Repository 1 cd existing_git_repo2 git remote add origin [email protected]:your_name/clrs.git3 git push origin master 參考:http://blog.lmlphp.com/archives/7/The_use_tutorial_of_git_bash_and_how_to_start_with_githubhttp://www.cnblogs.com/zdz8207/archive/2012/04/27/git-github.html

Windows平台使用git bash管理github中的工程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.