font

8月 20, 2014

如何用GIT連結putty協作

如何用GIT協作:
(此文只為了筆記供自看&紀錄用,不負任何教學責任XD)

1
登入Bitbucket,點選單Repositories > Create repository,
開好一個新repository(例如我開一個叫做「text123」的repository)
點選左邊選單的Clone,拿到SSH share網址,
會是長這樣子的:git clone git@bitbucket.org:weibbb/text123.git


2
接著開啟你的putty,登入後,把那一行貼上去:
git clone git@bitbucket.org:weibbb/text123.git


3
產生SSH keys:
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "hiphop3535@gmail.com"



顯示SSH key:輸入指令「cat id_rsa.pub」
會出現以下,全部貼在bitbucket SSH keys就可:

ssh-rsa AAAAB3NzaC1yc2EAAADAQABAAACAQDMpIS5vLXfAUVkhKRlzaOvWf/AoV2cL75KEvhAK/d7y95nblCTV/qEQbrxxS+3fQeY8/fSIevGPK7lfBkcsXJV90H8jAZ1CPDoCJsVdsVOZQvxd4HZlZ5MsISlAVWkMx0MZrOvuI4nsPEEDFpAvXyPJWR9nZb1hAZo9MdUmvYI0YYRY3p2/2esKRDEN5shdQGkBkGirWAmzwIK3hXxTNvZPL8NB4OSjZG49dAQnC+hnH/eeSmZhmzpi8w/rnYoG4Zb6knZPve8K79xmi/49vBaFn3GTgR5o7P1X28mLGfvQUpkIjSltmdLXp1ZXNCv+PnMg0B6qjVzzv4zCVnfhschkmfPAYQLqghnMHohR8ytDoQ4JIHfiJw3JDwAsYp/TuDMiL3WBWwQi/2a/evU8a9xmka3PvkY8rjXxMNGcVfNJ9YhTDybYNCZ+ohnroRITnAKtbD06AGiUE9YPKy2/kqTHsPcXFgsFvkBG9Hzj9xomr4/AfdNaeLCjcU/yAj/TVDP6jEPGUAOfJ0KAuSQHhYwqWN/FwRndU5aI4kBsrG68dkbG0+prRz+5funUdSslOT2Yq5PpYHC7pIrtHVoFlhGAK8Qh6DF9twnxiEY4WBUE5s7z1UJPb8elcY5Cofk/eUrg5CMAyQQgAxuBdH11IXz4qu5mmvq0ZIN5tTw== hiphop3535@gmail.com

Related Posts Plugin for WordPress, Blogger...

ShareThis