Help us understand the problem. What is going on with this article?

Capistranoで特定のファイルをデプロイ時に削除(除外)する

More than 5 years have passed since last update.

Excluding files from being deployed with Capistrano
Capistranoでデプロイ時に特定のファイルをデプロイ対象から外す

.gitattributesファイルを作成

.gitattributes
.gitattributes export-ignore
.gitignore export-ignore
features export-ignore
spec export-ignore

自分の場合はrbenvの.rbenv-versionを除外した。
spec/とすると除外されないことがあった。specで除外された。
(Gitのバージョンなどで違うかもしれない)
参考: StackOverflow git archive : export-ignore, ignoring directories

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away