Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to publish Delphi project on Github?

Tags:

github

delphi

I've written a small VCL program using Delphi CE. I want to publish the source code incl. forms on Github but I'm not sure which parts are essential to include in the repository so that others can load it in their IDE and compile it.

like image 593
Latz Avatar asked Feb 18 '21 13:02

Latz


2 Answers

I recommend you to use default .gitignore file for Delphi of Github. By this way you can be sure that all required files will be posted and all unnecessary files to compile will be excluded.

The file is here: https://github.com/github/gitignore/blob/master/Delphi.gitignore

If you have an existing repository and want to add a gitignore file, have a look at here: Apply .gitignore on an existing repository

like image 56
sddk Avatar answered Sep 24 '22 23:09

sddk


You can also exclude this files:

.~
*.dsm
*.ddp
*.map
*.rsm
*.dcu
*.tds
*.local
*.identcache
*.dsk
*.stat
*.tvsconfig

Exclude too the content of directories:

__history
__recovery

like image 35
Germán Estévez -Neftalí- Avatar answered Sep 26 '22 23:09

Germán Estévez -Neftalí-