我是新手與git,我想只有在當地的分支機構的特定文件夾從遠程獲得更新本地的,我沒了下文:git的結帳到特定的文件夾
git fetch
git checkout origin/branch-name -- /path/to/particular/folder
我得到了最新的代碼到那個特定的文件夾,但是當我執行git status
它顯示獲得最新作爲修改文件(作爲分段文件)的文件,但我不想要這個。
我的要求是,當我執行git status
,它顯示的消息像everything is up-to-date
。
我需要改變上述git fetch
和git checkout
命令或任何其他的選擇嗎?