Travis adding git output at the end of jobs

Ever since I added a deploy step with a script provider to my configuration, Travis has been adding the following output to my builds:

Already up to date!

HEAD detached at 74bef72

Untracked files:

  (use "git add <file>..." to include in what will be committed)

	deploy_key

nothing added to commit but untracked files present (use "git add" to track)

Dropped refs/stash@{0} (5259a6dfc5dda50fd0a03e08e3a5c8dc6c9e2866)

You can see the output on my public build here.

As you can see the output is being generated after the deploy step and not inside it.

My question is why is this output being added to my build. I’m not even sure what this output means, it looks like it’s calling git commit in some capacity? I would like to figure out how to remove this output.

This is because you didn’t include skip_cleanup: true into the deploy: entry.

See https://docs.travis-ci.com/user/deployment/#uploading-files-and-skip_cleanup

Thanks I understand now!