我使用git
部署我的網站,但是,我試圖找出爲什麼使用以下script,文件不斷累積在我的列表中working copy
。這意味着,我承諾並推送到我的裸存儲庫的每個不同的文件被列爲:M filename.php
git部署項目 - 存儲警告
此外,我想知道以下警告是什麼意思?我該如何避免它們?
To [email protected]:/home/www/site1/.git
07155f1..e80c2db master -> master
Push to checked out branch refs/heads/master
W:unstaged changes found in working copy
W:stashing dirty working copy - see git-stash(1)
Saved working directory and index state "On (no branch): dirty working copy before update to e80c2db3212a7eb33da2e218001122e0decae640"
Checking out files: 100% (6362/6362), done.
HEAD is now at 07155f1 updated file path
trapped 22921
Updating working copy
M image.php
M ask.php
M basic.php
HEAD is now at e80c2db updated text style
感謝
從VonC的評論 - 也許你需要使回購裸露,以便它保持乾淨,而不是在該回購工作的東西 - 你/其他人實際上做的回購工作... ... – 2011-06-04 18:28:22
@Philip Oakley:是的,其實這就是我的想法。我已經看到了使用git完成部署的幾種方法,但是,我仍然試圖找出最佳方式。有任何想法嗎? – 2011-06-04 21:36:39
@Philip Oakley:不,我是唯一一個在該存儲庫上工作的人。 – 2011-06-04 21:43:17