Pages

2014年12月11日木曜日

Git PULLした時に既にファイルがあった場合

経緯

app/tmp/ を .gitignore の中で指定していて、ある日app/tmp/sample/data1.txt を追加しました。
ずっとプッシュした気になっていたのですが、できておらず。。

そこで他の人が app/tmp/sample/data1.txt が無い事に気づいたプッシュしてくれました。

その後私がPULLするとこんなメッセージが。。

error: Untracked working tree file 'app/tmp/sample/data1.txt' would be overwritten by merge.  Aborting


内容は結局同じなので、app/tmp/sample/data1.txt を削除してからPULLしたら解決と。。

Followers