Re: [git-users] .gitignore directory override adds modified files but not new files

2019-09-25 Thread Mick Killianey
There's a section at the bottom of the `gitignore` docs (see https://git-scm.com/docs/gitignore) that deals specifically with this use case. It reads: Example to exclude everything except a specific directory foo/bar (note the /* - without the slash, the wildcard would also exclude everything wit

[git-users] .gitignore directory override adds modified files but not new files

2019-09-24 Thread Frank Millman
A section of my .gitignore looks like this aib/html/ !aib/html/src/ The intention is to exclude the contents of aib/html/, but include the contents of aib/html/src/. git status correctly shows files in aib/html/src/ that have been modified, but does not show files that have been added.

[git-users] Gitignore strage behaviour of !

2018-02-17 Thread Sahib Bin Mahboob
Hi, I was playing with this following gitignore for fun: */** *!/app* *!/app/a* And later tried with this command "git check-ignore app/a -v" with the output: .gitignore:7:!/app/a app/a As per as I understood from Gitignore doc "*!/app/a*" should indi

Re: [git-users] Gitignore add file or folder from terminal

2015-12-03 Thread Rainer M Krug
Good. Just be sure that you use ">>" which will *append* to the file; while ">" will *overwrite* it! Cheers, Rainer Vikram Mistry writes: > Hey Thanks...its working... > > On Thu, Dec 3, 2015 at 2:32 PM, Rainer M Krug wrote: > >> vik...@tryjiffy.com writes: >> >> > Hi, >> > >> > Since everyt

Re: [git-users] Gitignore add file or folder from terminal

2015-12-03 Thread Rainer M Krug
vik...@tryjiffy.com writes: > Hi, > > Since everything we are doing from the terminal, then there should be a > command to add the file in the gitignore through the terminal. Under Linux and OS X at least, echo "ignore.this.file" >> .gitignore should do it? Rainer > > Thanks. -- Rainer M

[git-users] Gitignore add file or folder from terminal

2015-12-02 Thread vikram
Hi, Since everything we are doing from the terminal, then there should be a command to add the file in the gitignore through the terminal. Thanks. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and sto

Re: [git-users] .gitignore ignored?

2015-10-02 Thread Sascha Manns
Hello Rusi, thank you very much for your help. You was right, the issue is now solved. Greetings Sascha Am Freitag, 2. Oktober 2015 06:11:26 UTC+2 schrieb rusi: > > On Fri, Oct 2, 2015 at 5:30 AM, Sascha Manns > wrote: > > Hello list, > > > > actually i'm having some trouble by using git. My

Re: [git-users] .gitignore ignored?

2015-10-01 Thread Rustom Mody
On Fri, Oct 2, 2015 at 5:30 AM, Sascha Manns wrote: > Hello list, > > actually i'm having some trouble by using git. My .gitignore shows: > > sascha@sascha-desktop:~/RubymineProjects/hoe-manns$ cat .gitignore > Index.yml > hoe-manns.gemspec > .yardoc > SetupConfig > SetupReceipt > README.txt > doc

[git-users] .gitignore ignored?

2015-10-01 Thread Sascha Manns
Hello list, actually i'm having some trouble by using git. My .gitignore shows: sascha@sascha-desktop:~/RubymineProjects/hoe-manns$ cat .gitignore Index.yml hoe-manns.gemspec .yardoc SetupConfig SetupReceipt README.txt doc ChangeLog pkg .teamcity .idea Changelog But a git status says me: sasch

[git-users] gitignore problem

2015-03-24 Thread Philipp Kraus
Hello, I have got this gitignore file and my definition is: # ignore everything *.* #globally allowed !.gitignore !*.md !*.java # allow doxygen configuration in the documentation dir and any subdir !src/main/documentation/**/*.css !src/main/documentation/**/*.htm !src/main/documentation/

Re: [git-users] .gitignore pattern

2015-01-06 Thread Dale R. Worley
Rainer M Krug writes: >> If you mean that the "base file name" >> (the name within the nearest containing directory) matches the regexp >> "EnergyBalance\.org.*", the "wildcard" version is "EnergyBalance.org*". > Just one question: why do you escape the "."? As far as I understand, it > has n

Re: [git-users] .gitignore pattern

2015-01-06 Thread Rainer M Krug
On Monday, January 5, 2015 7:49:29 PM UTC+1, Dale Worley wrote: > > Rainer M Krug > writes: > > Actually, I would like to exclude all files which have the > > following pattern: > > > > EnergyBalance.org[SOMETEXT] > > > > I tried > > > > EnergyBalance.org[.] > > EnergyBalance.org[*] > >

Re: [git-users] .gitignore pattern

2015-01-05 Thread Dale R. Worley
Rainer M Krug writes: > Actually, I would like to exclude all files which have the > following pattern: > > EnergyBalance.org[SOMETEXT] > > I tried > > EnergyBalance.org[.] > EnergyBalance.org[*] > > but none worked. I don't know what notation you're using for the "following pattern". Be aware t

[git-users] .gitignore pattern

2015-01-05 Thread Rainer M Krug
Hi I would like to exclude the following files from git by adding them to .gitignore. , | EnergyBalance.org[*Org Src EnergyBalance.org[ R ]*<2>] | EnergyBalance.org[*Org Src EnergyBalance.org[ R ]*] | EnergyBalance.org[*Org Src fitLHC.wpLEL.single[ R ] *] ` Actually, I would

Re: [git-users] .gitignore isn't ignoring.

2014-04-18 Thread Paul Smith
On Fri, 2014-04-18 at 12:49 -0700, gordonle...@gmail.com wrote: > I've set intellij to ignore the three build files, but it too doesn't > appear to be ignoring it. .gitignore only impacts file which are untracked (that you've never added or committed). You can't ignore files that you've already t

[git-users] .gitignore isn't ignoring.

2014-04-18 Thread gordonleema
I'm reading here: http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository 1) Do we put .gitignore at our working directory? I think so according to http://stackoverflow.com/questions/5698148/where-does-gitignore-file-belong *BUT, git isn't ignoring my files.* 2) I'm using intel

Re: [git-users] gitignore change for tracked / untracked files

2014-01-31 Thread Thomas Ferris Nicolaisen
On Friday, January 31, 2014 7:36:52 AM UTC+1, Philipp Kraus wrote: > > Hello, > sorry for the late answer. > > Am Mittwoch, 22. Januar 2014 21:27:18 UTC+1 schrieb Magnus Therning: >> >> I'm not 100% sure I understand what you wish to do, but you might want >> to look at `git clean`. By default it

Re: [git-users] gitignore change for tracked / untracked files

2014-01-30 Thread Philipp Kraus
Hello, sorry for the late answer. Am Mittwoch, 22. Januar 2014 21:27:18 UTC+1 schrieb Magnus Therning: > > I'm not 100% sure I understand what you wish to do, but you might want > to look at `git clean`. By default it just lists the files it would > delete, you have to pass it '-f' to actually

Re: [git-users] gitignore change for tracked / untracked files

2014-01-22 Thread Magnus Therning
On Wed, Jan 22, 2014 at 11:50:16AM -0800, Philipp Kraus wrote: > Hello, > > I have defined a gitignore with file pattern, which should be ignored eg: > *.tmp > *.bak > ... > > I would change the gitignore file to: > .* > !*.cpp > !*.res > > but I would also removed tracked files, which are added

[git-users] gitignore change for tracked / untracked files

2014-01-22 Thread Philipp Kraus
Hello, I have defined a gitignore with file pattern, which should be ignored eg: *.tmp *.bak ... I would change the gitignore file to: .* !*.cpp !*.res but I would also removed tracked files, which are added to the repo if the files does not match the ignore pattern. I would like to check the c

Re: [git-users] .gitignore question

2013-11-15 Thread wtriker . ffe
Thanks for the replies. I did not understand the ** explanation vs * in the documentation. I'll give that a try. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an e

Re: [git-users] .gitignore question

2013-11-15 Thread Edwin Castro
On 11/13/13, 6:15 AM, wtriker@gmail.com wrote: > '/system/cache' and all start with 'cache.' Sounds like you want to match any number of directories prior to the system directory. Try this pattern: **/system/cache/cache.* -- Edwin -- You received this message because you are subscribed to

Re: [git-users] .gitignore question

2013-11-14 Thread Dale R. Worley
> From: wtriker@gmail.com > > I have some files that I want to ignore but can't seem to come up with the > correct format. There are multiple sub-directories with the same path that > I want to ignore. Specifically, the are '/system/cache' and > all start with 'cache.'. The .gitignore entry

Re: [git-users] .gitignore question

2013-11-13 Thread William Seiti Mizuta
Can you ignore all subdirectories inside cache directory? If so, just write cache in your .gitignore file. Git will ignore all cache directories independently where it was. It can be in project root or inside a directory. William Seiti Mizuta @williammizuta Caelum | Ensino e Inovação www.caelum

[git-users] .gitignore question

2013-11-13 Thread wtriker . ffe
I have some files that I want to ignore but can't seem to come up with the correct format. There are multiple sub-directories with the same path that I want to ignore. Specifically, the are '/system/cache' and all start with 'cache.'. The .gitignore entry I am using is: system/cache/cache.* Bu

Re: [git-users] GitIgnore Not including folders again

2013-10-21 Thread Dale R. Worley
> From: Rik Svendsen Rose > The folder that i want included is: > 02 Microsoft SQL Server/xxx/MSSQL/Backup > > > I have tried adding into my .gitignore folder: > > 02 Microsoft SQL Server/**/ > !02 Microsoft SQL Server/**/Backup I don't think that Unix-style shell globs define "**" to mean a

[git-users] GitIgnore Not including folders again

2013-10-20 Thread Rik Svendsen Rose
Hi I Am trying to add an ignor exception in a gitignore file. The folder i dont want is: 02 Microsoft SQL Server/ The folder that i want included is: 02 Microsoft SQL Server/xxx/MSSQL/Backup I have tried adding into my .gitignore folder: 02 Microsoft SQL Server/**/ !02 Microsoft SQL Server/

Re: [git-users] gitignore ignored?

2013-09-27 Thread Konstantin Khomoutov
On Fri, 27 Sep 2013 00:53:21 -0700 (PDT) Mauro Sanna wrote: [...] > When I push my commits I see target and its subdirs in the repository. > But target is gitignored, why is it pushed? There are several misunderstandings here: 1) Mechanisms for ignoring files in Git have nothing to do with push

[git-users] gitignore ignored?

2013-09-27 Thread Mauro Sanna
Hello. My .gitignore is: *.iws *Db.properties *Db.script .settings stacktrace.log /*.zip /plugin.xml /*.log /*DB.* /cobertura.ser .DS_Store /target/ /out/ /web-app/plugins /web-app/WEB-INF/classes /.link_to_grails_plugins/ /target-eclipse/ When I push my commits I see target and its subdirs in th

Re: [git-users] .gitignore and branches issues

2012-09-03 Thread mem
On Sep 3, 2012, at 11:34 , Konstantin Khomoutov wrote: > On Mon, 3 Sep 2012 02:29:12 -0700 (PDT) > mem wrote: > >> While checkout to master branch, I got: >> >> Error: The following untracked working tree files would be >> overwritten by checkout: >> nbproject/private/config.properties >> nbpro

Re: [git-users] .gitignore and branches issues

2012-09-03 Thread Konstantin Khomoutov
On Mon, 3 Sep 2012 02:29:12 -0700 (PDT) mem wrote: > While checkout to master branch, I got: > > Error: The following untracked working tree files would be > overwritten by checkout: > nbproject/private/config.properties > nbproject/private/private.properties > nbproject/private/private.xml > nb

[git-users] .gitignore and branches issues

2012-09-03 Thread mem
While checkout to master branch, I got: Error: The following untracked working tree files would be overwritten by checkout: nbproject/private/config.properties nbproject/private/private.properties nbproject/private/private.xml nbproject/project.properties nbproject/project.xml Please move or

Re: [git-users] Gitignore

2011-12-02 Thread Konstantin Khomoutov
On Fri, 2 Dec 2011 12:13:43 -0300 Flávio Alencar wrote: > I have two questions: > > 1 - Do I have to configure the gitignore before running the first > commit? No. It's just a way to hide certain files from certain commands operating on files (such as git-status or git-add). git-commit does not

[git-users] Gitignore

2011-12-02 Thread Flávio Alencar
Hi!! I have two questions: 1 - Do I have to configure the gitignore before running the first commit? 2 - I configured these parameters in the gitignore for the Visual Studio projets. Do you have another suggestions? [Oo]bj/ [Bb]in/ *.suo *.user /TestResults *.vspscc *.vssscc Thanks! * Aten

[git-users] .gitignore produces (seemingly) random results

2008-09-18 Thread jack7890
Sorry for spamming the whole group with this question, but I've run into a git problem that is driving me absolutely insane. I'm using a git repository for a symfony project I'm developing. I'd like to use .gitignore to have git ignore cache, config, log files, etc. But I find that using a .git