# Commited file looks un-commited after I run jekyll serve

**URL:** <https://talk.jekyllrb.com/t/commited-file-looks-un-commited-after-i-run-jekyll-serve/6235>\
**Category:** Help\
**Created:** [July 12, 2021, 4:01pm UTC](https://talk.jekyllrb.com/t/commited-file-looks-un-commited-after-i-run-jekyll-serve/6235 "2021-07-12T16:01:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Borek78](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/borek78/32/3733_2.png) [@Borek78](https://talk.jekyllrb.com/u/Borek78)\
**Post date:** [July 12, 2021, 4:01pm UTC](https://talk.jekyllrb.com/t/commited-file-looks-un-commited-after-i-run-jekyll-serve/6235/1 "2021-07-12T16:01:56Z")

</div>

Hi,

I have commited a file. But when I run jekyll serve the file becomes un-commited again.

The name of the file is feed.xml. The file is in the \_site folder.

\_site/feed.xml

Jekyll is rebuilding the pages after jekyll serve. I think, that is where the problem is.

I have made a video about the issue. I apologize for the bad sound.

[![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/5/55a6c62556922600f38bb7b71d55668e6d74ec5a.jpeg "Commited file needs to be commited again after I run jekyll serve") ](https://www.youtube.com/watch?v=gn4Eh_f3cnE)

I would really appreciate any comment and support.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [July 12, 2021, 4:46pm UTC](https://talk.jekyllrb.com/t/commited-file-looks-un-commited-after-i-run-jekyll-serve/6235/2 "2021-07-12T16:46:11Z")

</div>

you never do anything to the files in the \_site folder - they get wiped out every time jekyll runs. You need to edit the same file in the root of the project.

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [July 15, 2021, 9:48pm UTC](https://talk.jekyllrb.com/t/commited-file-looks-un-commited-after-i-run-jekyll-serve/6235/3 "2021-07-15T21:48:58Z")

</div>

Run

```auto
jekyll new my-repo

```

To set up a new project

Or clone my one and run it

> <https://github.com/MichaelCurrin/jekyll-blog-demo/blob/master/.gitignore>

Note that nothing in `_site` is in the repo and the directory name appears on .gitignore

---

<div class="post-metadata">

**Author:** ![TerminalAddict](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/terminaladdict/32/1300_2.png) [@TerminalAddict](https://talk.jekyllrb.com/u/TerminalAddict)\
**Post date:** [July 17, 2021, 12:33am UTC](https://talk.jekyllrb.com/t/commited-file-looks-un-commited-after-i-run-jekyll-serve/6235/4 "2021-07-17T00:33:31Z")

</div>

> **[Jekyll Getting Started](https://terminaladdict.com/linux/jekyll/bash/development/2018/10/17/Jekyll-Getting-Started.html)**
>
> So my web development has taken an interesting path, not that different to some others.I start back in 1907 doing hand coded html, then moved to hand coded php, then dreamweaver, then CMS.Eventually making it to Wordpress then back to PHP, and now to...
