Re: How to remove old source file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 16 Nov, 2015 at 00:42:10 GMT, Kevin Kofler wrote:
> Till Maas wrote:
>> It also breaks git clean which is used to clean files. What is the
>> reason that making .gitignore append-only would be useful btw?
>
> If I don't bother cleaning away the old tarballs, I don't want them to show 
> up as uncommitted files in git-cola (or command-line "git status", I suppose 
> – I always use git-cola), polluting my list of files to commit.

You can set up a global .gitignore. The reasoning is that adding .*.sw*
to every repo just because you use Vim is silly. It is, of course,
overriden by any "don't exclude" lines in a repo-local .gitignore file.
Here's some of my configuration:

.config/git/config:

[core]
    excludesfile = ~/.local/share/git/gitignore

.local/share/git/gitignore:

# Vim backup files
.*.sw*
.*.un~

# Object files
*.o
*.obj

# Autotools
*.lo
*.la
.libs/
.deps/
autom4te.cache/
.dirstamp

# gettext
*.gmo
*.pot

# Python files
*.pyc
*.pyo
__pycache__/

# Tarballs and zip files
*.rar
*.tar.*
*.tgz
*.zip

--Ben

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux