由于是在Proxy的網(wǎng)絡(luò)環(huán)境,MSYSGIT 的 git clone 總是失敗。需要配置如下環(huán)境變量。
export http_proxy="http://<proxy domain name>:<port>"
之后http協(xié)議git clone沒(méi)有任何問(wèn)題。但是用git 協(xié)議仍舊有問(wèn)題。
之后發(fā)現(xiàn)git push 和 git pull 經(jīng)常不能work。多次嘗試后發(fā)現(xiàn)用更全的命令行參數(shù)可以解決問(wèn)題。
過(guò)程如下。
git pull --fail
git pull origin --fail
git pull git@github.com:ueddieu/mmix.git --it works.
It seems the Command line short cuts are lack of some user information, such as user name "git".
(which is kind of strange at the first glance.)
git push --fail
git push origin --fail
git push git@github.com:ueddieu/mmix.git master --it works.
Anyway, now I can check in code smoothly. :)