如何從git存儲庫中只檢出一個(gè)文件?如何從gitrepo中簽出一個(gè)文件?
3 回答

當(dāng)年話下
TA貢獻(xiàn)1890條經(jīng)驗(yàn) 獲得超9個(gè)贊
git clone -n git://path/to/the_repo.git --depth 1
cd the_repo git checkout HEAD name_of_file

收到一只叮咚
TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超5個(gè)贊
git log
git checkout hash-id path-to-file
git checkout 3cdc61015724f9965575ba954c8cd4232c8b42e4 /var/www/css/page.css
- 3 回答
- 0 關(guān)注
- 1579 瀏覽
添加回答
舉報(bào)
0/150
提交
取消