先安裝win10 14393 以上的系統(tǒng)
控制面板中安裝bash子系統(tǒng)
win + R 打開cmd回車
Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation闪湾。保留所有權(quán)利冲甘。
C:\Users\Administrator>bash
先安裝git
sudo apt-get install git
git安裝完后用 git clone 下載代碼 ,可以避免網(wǎng)頁上直接下載還要輸入驗證碼的麻煩
dsg@DESKTOP-0KLDAEH:/mnt/c/Users/Administrator$ git clone https://git.oschina.net/handashuai/Windows-universal-samples.git
Cloning into 'Windows-universal-samples'...
remote: Counting objects: 23442, done.
remote: Compressing objects: 100% (10012/10012), done.
remote: Total 23442 (delta 13766), reused 22785 (delta 13142)
Receiving objects: 100% (23442/23442), 22.44 MiB | 230.00 KiB/s, done.
Resolving deltas: 100% (13766/13766), done.
Checking connectivity... done.
Checking out files: 100% (10111/10111), done.