my mistake, my last email should have read:
$ cd path/to/the
... work in that deep directory ...
... realize that file.txt in that directory needs ignoring ...
... know relative path of both desired ignore file and cwd ...
$ echo path/to/the/file.txt > ../../../.gitignore
... or with this
> Wouldn't this simpler to type and less error prone, as you do
> have to
> $ cd path/to/the
> ... work in that deep
> ... realize that file.txt in that directory needs ignoring ...
> $ echo file.txt > .gitignore
that would have "path/to/the/.gitignore" which contains "file.
From: Thurston Stone
The 'git ignore' command modifies a .gitignore file in your path
easily. By default, it adds lines to the .gitignore found in the
root of your repository. It can, however, add lines to a gitignore
anywhere inbetween the file(s) passed in and the root of the
repos
3 matches
Mail list logo