git filemode 用意? - Linux

By Wallis
at 2014-10-17T21:07
at 2014-10-17T21:07
Table of Contents
先前在 Windows 上開發,用 git 控管版本,
一直沒有留意過這個問題,以為在 Linux 上也一樣。
後來在 Linux 上對幾個小專案 commit 過幾次,
接著把整個 repo 搬到 Windows 的網路磁碟機上,從 Linux 去 mount 那個磁區,
然後 git diff 就噴出滿滿的 filemode diff...
而從 Windows 端下 git diff 則是空白輸出(沒有差別)
我 google 了兩三天,似乎這個 filemode 在 Linux 上才有作用,
在 Windows 上預設不啟用,所以我從來沒發現這個差別,
不過有人建議保留這個設定,不要關掉,在某些時候用的到。
但我繼續搜尋了一段時間都沒有解釋這個 filemode 究竟什麼時候會用的到,
也不知道關掉是否有某些副作用(或是對某些特定的專案會有問題)
請問有人有經驗嗎? 通常什麼時候用到? 各位會停用 filemode 嗎?
--
一直沒有留意過這個問題,以為在 Linux 上也一樣。
後來在 Linux 上對幾個小專案 commit 過幾次,
接著把整個 repo 搬到 Windows 的網路磁碟機上,從 Linux 去 mount 那個磁區,
然後 git diff 就噴出滿滿的 filemode diff...
而從 Windows 端下 git diff 則是空白輸出(沒有差別)
我 google 了兩三天,似乎這個 filemode 在 Linux 上才有作用,
在 Windows 上預設不啟用,所以我從來沒發現這個差別,
不過有人建議保留這個設定,不要關掉,在某些時候用的到。
但我繼續搜尋了一段時間都沒有解釋這個 filemode 究竟什麼時候會用的到,
也不知道關掉是否有某些副作用(或是對某些特定的專案會有問題)
請問有人有經驗嗎? 通常什麼時候用到? 各位會停用 filemode 嗎?
--
Tags:
Linux
All Comments

By Madame
at 2014-10-18T16:54
at 2014-10-18T16:54

By Liam
at 2014-10-19T06:04
at 2014-10-19T06:04

By Liam
at 2014-10-22T20:15
at 2014-10-22T20:15

By Thomas
at 2014-10-27T09:52
at 2014-10-27T09:52

By Harry
at 2014-10-30T02:24
at 2014-10-30T02:24
Related Posts
CentOS網卡名稱會互換

By Olivia
at 2014-10-17T11:59
at 2014-10-17T11:59
Ningx High Concurrent求解

By Ula
at 2014-10-17T10:57
at 2014-10-17T10:57
grep檔案裡的特殊字元字串

By Eartha
at 2014-10-16T23:54
at 2014-10-16T23:54
grep檔案裡的特殊字元字串

By Victoria
at 2014-10-16T23:02
at 2014-10-16T23:02
關於多執行緒疑問

By Aaliyah
at 2014-10-16T14:48
at 2014-10-16T14:48