In-reply-to » Ready for clone https://github.com/sorenpeter/pixelblog

@darch@twtxt.net Yiha! I just explored the code online a little bit. The very first thing that came to mind is that you probably want to maintain a .gitignore in your repo and at least add this silly .DS_Store to it, it’s of no use. Since git only tracks files and not directories some of the folders would be empty. So they do not exist after cloning the repository. There are two commonly used approaches:

1.) The software just creates the directories, if they’re not present. In my opinion that’s the best solution in 99% of the time.
2.) Add and commit an empty file, often named .gitkeep or something similar.

Also temporary editor files are very good candidates to exclude from git. They of course depend on your favorite editor, I always add *.sw? for Vim swap files and also *~ for good measure. Some editors I used in the past just append a tilde to their temp files, so it’s an old habit. Of course, there are plenty of different suffixes, extensions and what not. I tell people to just start out with those the original author uses.

Other than some typos in the README and comments I haven’t tried this out. A few years back I made the resolution to never execute PHP code again if I can help it. 8-)

⤋ Read More