1. 程式人生 > >start.sh在linux下啟動報錯 Can't connect to any repository: ,cannot open git-receive-pack

start.sh在linux下啟動報錯 Can't connect to any repository: ,cannot open git-receive-pack


個人部落格 地址:http://www.wenhaofan.com/article/20181223135418

報錯資訊

Can't connect to any repository: ,cannot open git-receive-pack

原因

.sh指令碼在windows系統下用記事本檔案編寫的,檔案格式為dos

解決方法

使用vi工具修改.sh檔案格式

     1.使用vi工具開啟檔案

      vi start.sh

    2. 修改檔案格式 

     :set ff=unix 

     :wq