Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone familiar with Git?
Message
From
05/03/2016 17:26:30
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
05/03/2016 16:20:40
General information
Forum:
Visual FoxPro
Category:
Git
Miscellaneous
Thread ID:
01632456
Message ID:
01632590
Views:
78
I'm with Craig. Exclude all binaries except that not transformed. Fernandos code works like a spell, no need to store those binaries.

I generate the *.??2 files and the binaries with my tool you find at VFPX. (I dislike binary creation on every checkout / merge / pull. Also it gives an extra layer of security. Also sometimes it's much easier to check old changes against the current version.). There are other posible ways.

To force git to include only usefull files might be a big deal. I've decided to go the other way around. I only include what i like to see in the repo.
Below is an example for .gitignore to include only that.
#note .gitignore works in a the-last-line-wins fashion. So you exclude stuff you have included after it was excluded.
#exclude general (this means nothing included)
*.*

#include what we need
#include general
#dbx data
!*.dbf
!*.cdx
!*.fpt

!*.dbc
!*.dc[tx]

#grafics
!*.bmp
!*.msk
!*.ico
!*.cdr
!*.cur

#programms
!*.prg
!*.fpw

#header
!*.h

#libs (transformed by FoxBin2prg) [still excluded]
#!*.vc[xt]
#!*.pj[xt]
#!*.fr[xt]
#!*.mn[xt]
#!*.sc[xt]
#!*.lb[xt]

#include FoxBin2prg related stuff
!*.vc2
!*.pj2
!*.fr2
!*.mn2
!*.sc2
!*.lb2
#!*.d[bc]2

#include special
#default git
!*.gitignore
!/desktop.ini

#diverse
!*.reg
!/FoxBin2prg.cfg

#exclude special
foxuser_9.*
_command.prg
*ref.*
debug*.*
Sicherungskopie*.*
include/projsub.h

#exclude special folders at all
default/
temp/
tmp/

bin2txt.*

#but include from there because I do need it :(
!debuglib.vc2
!debuglib.*.vc2
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform