[DUG] Delphi & Git

Jolyon Smith jsmith at deltics.co.nz
Thu May 29 10:19:38 NZST 2014


There is nothing particularly noteworthy about using Delphi with Git that
isn't also applicable when using Delphi with any other version control
system, such as keeping keeping DFM files in text form rather than binary,
to facilitate diffíng etc etc.  Other than that it is simply a question
of the differences in how you use Git as opposed to those other systems
(e.g. in establishing files or filetypes to be ignored for the purposes of
versioning etc).

I have been using a combination of TortoiseGit and (rarely) git command
line for some time now, having previously had an SVN repo.  TortoiseGit can
be initially overwhelming as to my mind it provides far deeper reach into
the overall Git functionality than TortoiseSVN does for SVN.  This may also
be because the distributed nature of Git itself makes for an intrinsically
richer domain, which may initially appear more complex, though it really
isn't.

i.e. rather than simple "checkout" of working copies and "commit" (or
revert) of changes, TortoiseGit also has to accommodate the Push/Pull
semantics and remote repository references that DVCS entails, which a
central repository system such as SVN does not.

You may also have to get your head around concepts like "bare" repositories
(a git repo which has no working copies.

None of this is especially difficult, as long as you don't try to
understand Git solely in terms of comparison to SVN.  They are very
different and in my experience it is best to understand and appreciate the
differences rather than trying to "smooth over" them.

Fortunately there are plenty of online resources and guides to help gain
this understanding, none of which really related specifically to use with
Delphi.  The documentation on the git-scm site is a good place to start.

http://git-scm.com/documentation


One thing worth noting is that SVN and Git (and indeed TortoiseSVN and
TortoiseGit) co-exist very happily so there is no problem in running a
hybrid Git/SVN environment while you gain comfort with Git.


--
Jolyon


On 29 May 2014 09:39, Gary T. Benner <gary at benner.co.nz> wrote:

>  HI All,
>
> Has anyone had experience with Delphi and Git?
>
> There appears to be a somewhat unsupported project called "RAD Studio
> Version Insight", and there is also TortoiseGit which works like TortoseSVN
> by working as an extension to Windows Explorer.
>
> Some feedback on best practice and any horror stories as well to keep us
> on the right path.
>
> cheers
>
> Gary
>
>
> Gary Benner MNZCS ITCP
> Information Technology Certified Professional
> Onlearn Limited <http://www.onlearn.co.nz> - Online Learning Hosting &
> Support, Training & Content Development
> 123 Internet Limited <http://www.123.net.nz> - Managed Web Hosting,
> Virtualisation, High Availability Systems & Cluster Technologies
> Semantic Limited <http://www.semantic.co.nz> - Software Development &
> Systems Design, Online Education, e-Commerce
> Disaster Warning Systems Limited <http://www.diwa.co.nz> - Public
> Emergency Warning and Communication Systems
> *Mob:* 021 966 992
> *DDI:* +64 7 543 1206
> *Email:* gary at benner.co.nz
> *Skype:* garybenner
>
>
> Ref#: 41006
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20140529/9dc2c683/attachment-0001.html 


More information about the Delphi mailing list