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

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

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

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

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 >

Re: [git-users] .gitignore pattern

2015-01-05 Thread Dale R. Worley
Rainer M Krug r.m.k...@gmail.com 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

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

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 just

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 to the repo

Re: [git-users] .gitignore question

2013-11-15 Thread Edwin Castro
On 11/13/13, 6:15 AM, wtriker@gmail.com wrote: 'someupper path/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

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 'someupper path/system/cache' and all start with 'cache.'. The

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

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

2013-10-21 Thread Dale R. Worley
From: Rik Svendsen Rose rik.s.r...@gmail.com 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 **

Re: [git-users] gitignore ignored?

2013-09-27 Thread Konstantin Khomoutov
On Fri, 27 Sep 2013 00:53:21 -0700 (PDT) Mauro Sanna mrsan...@gmail.com 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

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

2012-09-03 Thread Konstantin Khomoutov
On Mon, 3 Sep 2012 02:29:12 -0700 (PDT) mem talofo.l...@gmail.com 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

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 talofo.l...@gmail.com wrote: While checkout to master branch, I got: Error: The following untracked working tree files would be overwritten by checkout: nbproject/private/config.properties

Re: [git-users] Gitignore

2011-12-02 Thread Konstantin Khomoutov
On Fri, 2 Dec 2011 12:13:43 -0300 Flávio Alencar flavi...@gmail.com 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).