git clone 能否自動輸入password ?? - Linux

By Olivia
at 2012-05-14T23:05
at 2012-05-14T23:05
Table of Contents
如題, 例如我有個專案, 裡面有3包code要build
假設是 proj_A, proj_B, proj_C 好了, 然後都放在server 上
它是跑 ssh 的 protocol
現在我想寫一個 shell script 或 makefile, 讓它一次就把這3包抓下來 build
script或makefile裡面, 大概是長這樣
git clone [email protected]:/gitrepo/proj_A
make
git clone [email protected]:/gitrepo/proj_B
make
git clone [email protected]:/gitrepo/proj_C
make
現在有個問題, 就是 git clone 它會要你輸入密碼 (假設密碼是 "123456" 好了)
我覺得每次跑 script 或 makefile都要重複打3次密碼, 實在很煩
而且萬一以後我這個專案長到10個20個怎麼辦? 總不能叫我每次都手動輸入吧?
有沒有方法能自動輸入 git clone 的密碼?
--
Tags:
Linux
All Comments

By Rosalind
at 2012-05-19T09:43
at 2012-05-19T09:43

By Mason
at 2012-05-20T11:19
at 2012-05-20T11:19

By Edwina
at 2012-05-21T23:02
at 2012-05-21T23:02

By Emily
at 2012-05-24T09:21
at 2012-05-24T09:21

By Necoo
at 2012-05-28T09:21
at 2012-05-28T09:21

By Jessica
at 2012-06-01T12:43
at 2012-06-01T12:43

By Catherine
at 2012-06-06T07:33
at 2012-06-06T07:33

By Xanthe
at 2012-06-07T02:29
at 2012-06-07T02:29
Related Posts
MOC Ogg stream

By Joe
at 2012-05-14T20:41
at 2012-05-14T20:41
ubuntu 12.04 滑鼠會停頓

By Bethany
at 2012-05-14T17:45
at 2012-05-14T17:45
大陸使用者跟GNOME3開發者大論戰

By Hedda
at 2012-05-14T14:41
at 2012-05-14T14:41
Ubuntu無線網路失效

By Candice
at 2012-05-14T12:50
at 2012-05-14T12:50
Ubuntu 12.04的一些問題

By Oscar
at 2012-05-14T00:22
at 2012-05-14T00:22