最新的 git-bash 已安装,但无法安装git-ftp
.
cd ~
git clone https://github.com/git-ftp/git-ftp git-ftp.git
cd git-ftp.git && chmod +x git-ftp
cp ~/git-ftp.git/git-ftp /bin/git-ftp
但cp: cannot create regular file ‘/bin/git-ftp’: Permission denied
最新的 git-bash 已安装,但无法安装git-ftp
.
cd ~
git clone https://github.com/git-ftp/git-ftp git-ftp.git
cd git-ftp.git && chmod +x git-ftp
cp ~/git-ftp.git/git-ftp /bin/git-ftp
但cp: cannot create regular file ‘/bin/git-ftp’: Permission denied
I get the answers from Konstantin Khomoutov
Just right click Git Bash, run as administrator,then cp ~/git-ftp.git/git-ftp /bin/git-ftp
would be fine.