0

I am new to GitLab. I have configured .gitlab-ci.yml via the GitLab interface. So .gitlab-ci.yml is not on my local machine. When I now push the code from my local machine to the repository on GitLab, .gitlab-ci.yml is deleted. I added .gitlab-ci.yml to .gitignore on both my local machine and GitLab, but the file still gets deleted. What am I doing wrong?

Ted
  • 83
  • 1
  • 10

1 Answers1

0

.gitlab-ci.yml should be committed to your source control. It shouldn't be in .gitignore.

Remove it from .gitignore, add it and commit

git add .gitlab-ci.yml

Amityo
  • 5,635
  • 4
  • 22
  • 29