0
我有三個機,局部 - >服務器A - >服務器B
和本地節目,然後使用git推本地代碼服務器A,
在服務器AI設置鉤推在服務器A和服務器B上的代碼到服務器B,
雙方都配置此Untrack文件worktree
$ git config core.worktree /home/www
$ git config core.bare false
$ git config receive.denycurrentbranch ignore
,並有一個鉤子git checkout -f
如何更改服務器B上的一些文件,而不是跟蹤它?
我嘗試git update-index --assume-unchanged path/to/file
但送花兒給人的通知fatal: Unable to write new index file
我敢肯定,用戶必須在該文件夾的權限(可寫,讀和執行)
我也嘗試git update-index --skip-worktree path/to/file
不起作用