Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linuxbashcurl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linuxbashcurl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs
# read user-specific settings, possibly overriding anything above由以上代碼可知 如果再 windows 使用者資料夾下增加 .bash_profile 這個檔案的話就會被包含進去 msysgit 的環境設定內
if [ -e ~/.bashrc ]; then
. ~/.bashrc
elif [ -e ~/.bash_profile ]; then
. ~/.bash_profile
elif [ -e /etc/bash_profile ]; then
. /etc/bash_profile
fi
# utf-8 確認可在 cherry-pick 時保有中文訊息接著又再一次的使用 git cherry-pick 指令
export LESSCHARSET=utf-8
contrib\msysgit-install.cmd來做安裝但是顯示錯誤
make install來做安裝
git flow init時卻又出現一些錯誤訊息
local\bin/gitflow-shFlags: line 1: shFlags/src/shflags: No such file or directory接下來考慮到可能是安裝時的隱藏錯誤
local\bin/git-flow: line 78: FLAGS: command not found
contrib\msysgit-install.cmd這次使用一般的DOS來執行
MsysGit installation directory not found.由訊息可知無法正確判斷GIT路徑
Try to give the directory name on the command line:
msysgit-install "C:\Program Files\Git"
bin\getopt.exe not found.於是忽然想到在本文開頭提到的 bin.zip 資料夾內有 getopt.exe 這個檔案
You have to install this file manually. See the GitFlow README.
contrib\msysgit-install.cmd "D:\msysgit"這次就沒有錯誤訊息了